Skip to content

Commit

Permalink
test: fix tests on node 0.10 that require ArrayBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Apr 5, 2017
1 parent cd01926 commit de4147c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/global.js
Expand Up @@ -83,7 +83,7 @@ test('Buffer', function (t) {
var c = {
t: t,
Uint8Array: Uint8Array,
DataView: DataView
ArrayBuffer: ArrayBuffer
};
vm.runInNewContext(src, c);
});
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, Uint8Array: Uint8Array });
vm.runInNewContext(src, { t: t, setTimeout: setTimeout, Uint8Array: Uint8Array, ArrayBuffer: ArrayBuffer });
});
});

0 comments on commit de4147c

Please sign in to comment.