Comparing version 0.1.3 to 0.1.4
@@ -39,2 +39,6 @@ var vm = require('vm') | ||
merge(sandbox, global) | ||
// console is non-enumerable in node v10 and above | ||
sandbox.console = global.console | ||
// process is non-enumerable in node v12 and above | ||
sandbox.process = global.process | ||
sandbox.require = requireLike(_filename) | ||
@@ -41,0 +45,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
, "keywords": ["require","eval","vm","module"] | ||
, "version": "0.1.3" | ||
, "version": "0.1.4" | ||
, "homepage": "http://github.com/pierrec/node-eval" | ||
@@ -9,0 +9,0 @@ , "repository": { |
@@ -30,2 +30,6 @@ var assert = require('assert') | ||
// Verify that the console is available when globals are passed | ||
res = _eval('exports.x = console', true) | ||
assert.deepEqual(res.x, console) | ||
console.log('All tests passed') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6236
92
5