Comparing version 6.6.0 to 6.7.0
@@ -41,7 +41,7 @@ 'use strict'; | ||
var eshostContext = vm.createContext({ | ||
setTimeout, | ||
require, | ||
console, | ||
print(...args) { | ||
console.log(...args); | ||
setTimeout: setTimeout, | ||
require: require, | ||
console: console, | ||
print: function print() { | ||
console.log.apply(console, arguments); | ||
} | ||
@@ -48,0 +48,0 @@ }); |
{ | ||
"name": "eshost", | ||
"version": "6.6.0", | ||
"version": "6.7.0", | ||
"description": "Invoke ECMAScript scripts in any command line JS engine.", | ||
@@ -5,0 +5,0 @@ "main": "lib/eshost.js", |
@@ -1,3 +0,3 @@ | ||
function print(...args) { | ||
console.log(...args); | ||
function print() { | ||
console.log.apply(console, arguments); | ||
} | ||
@@ -7,6 +7,6 @@ var vm = require('vm'); | ||
global: Function('return this')(), | ||
gc() { | ||
gc: function() { | ||
return gc(); | ||
}, | ||
createRealm(options) { | ||
createRealm: function createRealm(options) { | ||
options = options || {}; | ||
@@ -36,3 +36,3 @@ options.globals = options.globals || {}; | ||
}, | ||
evalScript(code) { | ||
evalScript: function evalScript(code) { | ||
try { | ||
@@ -50,10 +50,10 @@ if (this.context) { | ||
}, | ||
getGlobal(name) { | ||
getGlobal: function getGlobal(name) { | ||
return this.global[name]; | ||
}, | ||
setGlobal(name, value) { | ||
setGlobal: function setGlobal(name, value) { | ||
this.global[name] = value; | ||
}, | ||
destroy() { /* noop */ }, | ||
IsHTMLDDA() { return {}; }, | ||
destroy: function destroy() { /* noop */ }, | ||
IsHTMLDDA: function IsHTMLDDA() { return {}; }, | ||
source: $SOURCE | ||
@@ -60,0 +60,0 @@ }; |
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
108640