mendel-exec
Advanced tools
Comparing version 4.0.0-alpha.2 to 4.0.0-alpha.3
11
index.js
@@ -10,2 +10,3 @@ const debug = require('debug')('mendel:exec'); | ||
const errorMapper = require('./source-mapper'); | ||
const globalProps = require('./global-props'); | ||
const MendelResolver = require('mendel-resolver'); | ||
@@ -110,7 +111,2 @@ | ||
if (!sandbox.process) sandbox.process = require('process'); | ||
if (!sandbox.Buffer) sandbox.Buffer = global.Buffer; | ||
if (!sandbox.setTimeout) sandbox.setTimeout = global.setTimeout; | ||
if (!sandbox.clearTimeout) sandbox.clearTimeout = global.clearTimeout; | ||
if (!sandbox.setInterval) sandbox.setInterval = global.setInterval; | ||
if (!sandbox.clearInterval) sandbox.clearInterval = global.clearInterval; | ||
if (!sandbox.debugFileMatching) { | ||
@@ -120,2 +116,7 @@ sandbox.debugFileMatching = debugFileMatching; | ||
globalProps.forEach((p) => { | ||
if (sandbox[p]) return; | ||
sandbox[p] = global[p]; | ||
}); | ||
// Let's pipe vm output to stdout this way | ||
@@ -122,0 +123,0 @@ sandbox.console = console; |
{ | ||
"name": "mendel-exec", | ||
"version": "4.0.0-alpha.2", | ||
"version": "4.0.0-alpha.3", | ||
"description": "JavaScript executor using VM and Mendelv2 for custom variational resolving.", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "3c1634b0bf3a8360cb17de39fa207fd9ca909b13" | ||
"gitHead": "e91e97f8daa3d312490a239e3654f84cd632b545" | ||
} |
12927
5
310