You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
370 B

'use strict';
// Flags: --expose-gc
require('../../common');
var binding = require('./build/Release/binding');
function check(size) {
var buf = binding.alloc(size);
var slice = buf.slice(size >>> 1);
buf = null;
binding.check(slice);
slice = null;
gc();
gc();
gc();
}
check(64);
// Empty ArrayBuffer does not allocate data, worth checking
check(0);