Merge pull request #24 from strongloop/backport-master-changes
[1.x] test: export Int32Array and DataView for browser
This commit is contained in:
commit
70dcdf17aa
|
@ -60,6 +60,10 @@ function createBrowserLikeContext() {
|
|||
// used by loopback to detect browser runtime
|
||||
window: {},
|
||||
|
||||
// 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