Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/helpers/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ function createContext() {
// `window` is used by loopback to detect browser runtime
context.window = context;

// In Node.js 0.10, the Uint8Array is provided by Node.js glue,
// it's not available in the V8 runtime itself
if (/^v0\.10/.test(process.version)) {
context.Uint8Array = Uint8Array;
}

return vm.createContext(context);
}
exports.createContext = createContext;
Expand Down