Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eshost

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eshost - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

hosts/ch.exp

3

lib/ConsoleAgent.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc