Skip to content

Commit

Permalink
Merge pull request #1678 from substack/buffer-5
Browse files Browse the repository at this point in the history
Update 'buffer' to v5.x
  • Loading branch information
feross committed Jan 25, 2017
2 parents 6efcd65 + 4f5d93b commit d7ea3dd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -25,7 +25,7 @@
"browser-pack": "^6.0.1",
"browser-resolve": "^1.11.0",
"browserify-zlib": "~0.1.2",
"buffer": "^4.1.0",
"buffer": "^5.0.2",
"cached-path-relative": "^1.0.0",
"concat-stream": "~1.5.1",
"console-browserify": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion test/double_buffer.js
Expand Up @@ -9,6 +9,6 @@ test('double buffer', function (t) {
b.require('buffer');
b.bundle(function (err, src) {
if (err) return t.fail(err);
vm.runInNewContext(src, { t: t });
vm.runInNewContext(src, { t: t, Uint8Array: Uint8Array });
});
});
2 changes: 1 addition & 1 deletion test/global.js
Expand Up @@ -26,7 +26,7 @@ test('__filename and __dirname with insertGlobals: true', function (t) {
});
b.require(__dirname + '/global/filename.js', { expose: 'x' });
b.bundle(function (err, src) {
var c = {};
var c = { Uint8Array: Uint8Array };
c.self = c;
vm.runInNewContext(src, c);
var x = c.require('x');
Expand Down
2 changes: 1 addition & 1 deletion test/leak.js
Expand Up @@ -52,6 +52,6 @@ test('leaking information about system paths (Buffer)', function (t) {
t.equal(src.indexOf(dirstring), -1, 'temp directory visible');
t.equal(src.indexOf(process.cwd()), -1, 'cwd directory visible');
t.equal(src.indexOf('/home'), -1, 'home directory visible');
vm.runInNewContext(src, { t: t, setTimeout: setTimeout });
vm.runInNewContext(src, { t: t, setTimeout: setTimeout, Uint8Array: Uint8Array });
});
});

0 comments on commit d7ea3dd

Please sign in to comment.