spec: Add test case for #5028

This commit is contained in:
Cheng Zhao 2016-04-05 17:08:27 +09:00
parent fa27120429
commit c562b24df8

View file

@ -196,6 +196,11 @@ describe('node feature', function () {
assert.equal(b.toString(), 'Jøhänñéß') assert.equal(b.toString(), 'Jøhänñéß')
assert.equal(Buffer.byteLength(p.innerText), 13) assert.equal(Buffer.byteLength(p.innerText), 13)
}) })
it('does not crash when creating large Buffers', function () {
new Buffer(new Array(4096).join(' '));
new Buffer(new Array(4097).join(' '));
})
}) })
describe('process.stdout', function () { describe('process.stdout', function () {