test: export Int32Array and DataView for browser
crypto-browserify uses Int32Array, which is not exposed on the VM context in Node v0.10.
This commit is contained in:
parent
2bcf1f60aa
commit
e7250b6eac
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue