Merge pull request #5033 from electron/fix-buffer-crash
Rebase on the correct Node commit
This commit is contained in:
commit
b48788af43
2 changed files with 12 additions and 1 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 () {
|
||||||
|
@ -212,6 +217,12 @@ describe('node feature', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('process.version', function () {
|
||||||
|
it('should not have -pre', function () {
|
||||||
|
assert(!process.version.endsWith('-pre'))
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
describe('vm.createContext', function () {
|
describe('vm.createContext', function () {
|
||||||
it('should not crash', function () {
|
it('should not crash', function () {
|
||||||
require('vm').runInNewContext('')
|
require('vm').runInNewContext('')
|
||||||
|
|
2
vendor/node
vendored
2
vendor/node
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 95e76436b3aceff54ebf8b32282cdbf8c74c4a5a
|
Subproject commit c18d608cd584e6b1c94a5d0d89939a1457f589b0
|
Loading…
Reference in a new issue