Merge pull request #24 from strongloop/backport-master-changes

[1.x] test: export Int32Array and DataView for browser
This commit is contained in:
Miroslav Bajtoš 2014-07-21 17:22:39 +02:00
commit 70dcdf17aa
1 changed files with 4 additions and 0 deletions

View File

@ -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: {