node/test/addons/buffer-free-callback/test.js

11 lines
232 B
JavaScript
Raw Normal View History

'use strict';
// Flags: --expose-gc
require('../../common');
var assert = require('assert');
var binding = require('./build/Release/binding');
var buf = binding.alloc();
var slice = buf.slice(32);
buf = null;
binding.check(slice);