File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
test/node-api/test_buffer Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 44 "target_name" : "test_buffer" ,
55 "defines" : [
66 "NAPI_EXPERIMENTAL" ,
7- "NAPI_VERSION=10" ,
87 "NODE_API_EXPERIMENTAL_NO_WARNING"
98 ],
109 "sources" : [ "test_buffer.c" ]
Original file line number Diff line number Diff line change 44const common = require ( '../../common' ) ;
55const binding = require ( `./build/${ common . buildType } /test_buffer` ) ;
66const assert = require ( 'assert' ) ;
7- const tick = require ( 'util' ) . promisify ( require ( '../../common/tick' ) ) ;
7+ const util = require ( 'util' ) ;
8+ const tick = util . promisify ( require ( '../../common/tick' ) ) ;
89
910( async function ( ) {
1011 assert . strictEqual ( binding . newBuffer ( ) . toString ( ) , binding . theText ) ;
@@ -30,6 +31,7 @@ const tick = require('util').promisify(require('../../common/tick'));
3031 // store is reclaimed; at least some of the time it happens even before
3132 // calling gc().
3233 let sab = binding . newExternalSharedArrayBuffer ( ) ;
34+ assert ( util . types . isSharedArrayBuffer ( sab ) ) ;
3335 sab = null ; // eslint-disable-line no-unused-vars
3436 global . gc ( ) ;
3537 await tick ( 10 ) ;
You can’t perform that action at this time.
0 commit comments