spec: Add test case for #5028
This commit is contained in:
parent
fa27120429
commit
c562b24df8
1 changed files with 5 additions and 0 deletions
|
@ -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 () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue