diff --git a/spec/node-spec.js b/spec/node-spec.js index 286c4d6f9161..0ab98aa67ab9 100644 --- a/spec/node-spec.js +++ b/spec/node-spec.js @@ -196,6 +196,11 @@ describe('node feature', function () { assert.equal(b.toString(), 'Jøhänñéß') 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 () { @@ -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 () { it('should not crash', function () { require('vm').runInNewContext('') diff --git a/vendor/node b/vendor/node index 95e76436b3ac..c18d608cd584 160000 --- a/vendor/node +++ b/vendor/node @@ -1 +1 @@ -Subproject commit 95e76436b3aceff54ebf8b32282cdbf8c74c4a5a +Subproject commit c18d608cd584e6b1c94a5d0d89939a1457f589b0