Comparing version 2.2.0 to 2.2.1
@@ -8,3 +8,3 @@ 'use strict'; | ||
const errorRe = /^(.*?):(\d+): ((\w+): (.*))[\w\W]*\3((:?\s+at.*\r?\n)*)(\r?\n)+$/; | ||
const errorRe = /(.*?):(\d+): ((\w+): (.*))[\w\W]*\3((:?\s+at.*\r?\n)*)(\r?\n)+$/; | ||
@@ -11,0 +11,0 @@ const runtimeStr = inception( |
{ | ||
"name": "eshost", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Invoke ECMAScript scripts in any command line JS engine.", | ||
@@ -5,0 +5,0 @@ "main": "lib/eshost.js", |
11
test.js
@@ -1,5 +0,6 @@ | ||
var vm = require('vm'); | ||
var obj = {}; | ||
var context = vm.createContext({console: console}); | ||
vm.runInContext('var x = 1', context); | ||
vm.runInContext('console.log(x)', context); | ||
var fs = require('fs'); | ||
var esh = require('./'); | ||
var runner = esh.getRunner('c:/users/brterlso/projects/v8/build/Release/d8.exe', 'd8'); | ||
runner.exec(fs.readFileSync('./proxy-test.js', 'utf8')).then(function(result) { | ||
console.log(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
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 43 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
64414671
104
1254
65