From e7250b6eaca90be519ca9e60e7ed121c0322d439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Thu, 17 Jul 2014 10:05:08 +0200 Subject: [PATCH] test: export Int32Array and DataView for browser crypto-browserify uses Int32Array, which is not exposed on the VM context in Node v0.10. --- test/browser.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/browser.test.js b/test/browser.test.js index 9395967..1df93f9 100644 --- a/test/browser.test.js +++ b/test/browser.test.js @@ -68,6 +68,10 @@ function createBrowserLikeContext() { // used by `debug` module document: { documentElement: { style: {} } }, + // used by crypto-browserify & friends + Int32Array: Int32Array, + DataView: DataView, + // allow the browserified code to log messages // call `printContextLogs(context)` to print the accumulated messages console: {