Comparing version 7.1.0 to 7.2.0
@@ -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 @@ } |
{ | ||
"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` | |
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
109365
2259
270