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.

12 lines
338 B

var common = require('../common');
var assert = require('assert');
var Buffer = require('buffer').Buffer;
var buff = new Buffer(Buffer.poolSize + 1);
var slicedBuffer = buff.slice();
assert.equal(slicedBuffer.parent,
buff,
"slicedBufffer should have its parent set to the original " +
" buffer");