Comparing version 3.3.0 to 3.3.1
@@ -34,3 +34,2 @@ 'use strict'; | ||
code = this.compile(code); | ||
writeFile(tempfile, code) | ||
@@ -46,3 +45,3 @@ .then(_ => { | ||
this._cp = null; | ||
fs.unlink(tempfile); | ||
fs.unlink(tempfile, function () { /* ignore */ }); | ||
@@ -49,0 +48,0 @@ const result = this.normalizeResult({ stderr: stderr, stdout: stdout }); |
{ | ||
"name": "eshost", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Invoke ECMAScript scripts in any command line JS engine.", | ||
@@ -5,0 +5,0 @@ "main": "lib/eshost.js", |
@@ -7,5 +7,5 @@ 'use strict'; | ||
const hosts = [ | ||
['./hosts/js.exe', 'jsshell'], | ||
//['./hosts/js.exe', 'jsshell'], | ||
['./hosts/ch.exe', 'ch'], | ||
['c:/program files/nodejs/node.exe', 'node'], | ||
/*['c:/program files/nodejs/node.exe', 'node'], | ||
['../v8/build/Release/d8.exe', 'd8'], | ||
@@ -102,2 +102,23 @@ ['../webkit/build/bin64/jsc.exe', 'jsc'], | ||
it.only('runs thrown custom Errors that don\'t have Error.prototype', function () { | ||
return agent.evalScript(` | ||
function Foo2Error(msg) { | ||
this.message = msg; | ||
} | ||
//Foo2Error.prototype = Object.create(Error.prototype); | ||
Foo2Error.prototype.name = 'Foo2Error'; | ||
Foo2Error.prototype.toString = function () { | ||
return 'Foo2Error: ' + this.message; | ||
} | ||
throw new Foo2Error('FAIL!'); | ||
`).then(result => { | ||
console.log(result); | ||
assert.equal(result.stdout, '', 'stdout not present'); | ||
assert(result.error, 'error is present'); | ||
assert.equal(result.error.message, 'FAIL!'); | ||
assert.equal(result.error.name, 'Foo2Error'); | ||
}); | ||
}) | ||
it('runs thrown Errors without messages', function () { | ||
@@ -104,0 +125,0 @@ return agent.evalScript('throw new Error();').then(function (result) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 18 instances 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
315335800
140
1741
19
84