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

eshost

Package Overview
Dependencies
Maintainers
2
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 7.1.0 to 7.2.0

14

lib/agents/graaljs.js

@@ -11,2 +11,13 @@ 'use strict';

class GraalJSAgent extends ConsoleAgent {
constructor(options) {
super(options);
this.args.unshift(
'--js.test262-mode=true',
'--js.intl-402=true',
'--js.ecmascript-version=2020',
'--experimental-options'
);
}
evalScript(code, options = {}) {

@@ -20,4 +31,3 @@ if (options.module && this.args[0] !== '--module') {

}
this.args.unshift('--js.test262-mode=true');
this.args.unshift('--experimental-options');
return super.evalScript(code, options);

@@ -24,0 +34,0 @@ }

2

package.json
{
"name": "eshost",
"version": "7.1.0",
"version": "7.2.0",
"description": "Invoke ECMAScript scripts in any command line JS engine.",

@@ -5,0 +5,0 @@ "main": "lib/eshost.js",

@@ -38,4 +38,4 @@ # eshost

* 1: `eshost` accepts JSVU style binary name values as the first argument to `eshost.createAgent(type: string, options = {}): Agent`. See [Use JSVU](#use-jsvu).
* 2: It is possible to build jsc on other platforms, but not supported.
* 1: `eshost` accepts `esvu` or `jsvu` style binary name values as the first argument to `eshost.createAgent(type: string, options = {}): Agent`. See [Installing Engines](#installing-engines).
* 2: It is possible to build `jsc` on other platforms, but not supported.
* 3: Also available on your Mac system at `/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc`.

@@ -45,5 +45,5 @@ * 4: For QuickJS installation help, see [Install and Configure Hosts](https://github.com/bterlson/eshost-cli#install-and-configure-hosts).

## Use JSVU
## Installing Engines
[JSVU](https://github.com/GoogleChromeLabs/jsvu) is the recommended tool for maintaining JavaScript engines for testing purposes. Take a look at the [Supported engines](https://github.com/GoogleChromeLabs/jsvu#supported-engines) for more information.
[esvu](https://github.com/devsnek/esvu) or [jsvu](https://github.com/GoogleChromeLabs/jsvu) are the recommended tools for maintaining JavaScript engines for testing purposes. Take a look at the [esvu supported engines](https://github.com/devsnek/esvu#usage) or [jsvu supported engines](https://github.com/GoogleChromeLabs/jsvu#supported-engines) for more information.

@@ -87,2 +87,3 @@

| GraalJS | `graaljs` |
| Hermes | `hermes` |
| JavaScriptCore | `javascriptcore`, `jsc` |

@@ -89,0 +90,0 @@ | Nashorn | `nashorn` |

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