Comparing version 6.4.0 to 6.5.0
@@ -8,3 +8,3 @@ 'use strict'; | ||
const errorRe = /(.*?):(\d+): (([\w\d]+)(?:: (.*))?)[\w\W]*(\3((:?\s+at.*\r?\n)*)(\r?\n)+)?$/; | ||
const errorRe = /^(\w+): (.*)$/m; | ||
@@ -20,3 +20,3 @@ class QJSAgent extends ConsoleAgent { | ||
} | ||
this.args.push('-N'); | ||
return super.evalScript(code, options); | ||
@@ -30,19 +30,7 @@ } | ||
} | ||
const stackStr = match[6] || ''; | ||
let stack; | ||
if (stackStr.trim().length > 0) { | ||
stack = ErrorParser.parseStack(stackStr); | ||
} else { | ||
stack = [{ | ||
source: match[0], | ||
fileName: match[1], | ||
lineNumber: match[2] | ||
}]; | ||
} | ||
return { | ||
name: match[4], | ||
message: match[5], | ||
stack: stack, | ||
name: match[1], | ||
message: match[2], | ||
stack: [], | ||
}; | ||
@@ -49,0 +37,0 @@ } |
@@ -20,2 +20,3 @@ 'use strict'; | ||
node: 'node', | ||
qjs: 'qjs', | ||
sm: 'jsshell', | ||
@@ -22,0 +23,0 @@ spidermonkey: 'jsshell', |
{ | ||
"name": "eshost", | ||
"version": "6.4.0", | ||
"version": "6.5.0", | ||
"description": "Invoke ECMAScript scripts in any command line JS engine.", | ||
@@ -5,0 +5,0 @@ "main": "lib/eshost.js", |
@@ -1,39 +0,2 @@ | ||
/* QuickJS exposes a $262 object to its runtime */ | ||
if (!$262) { | ||
/* | ||
These are implemented in run-test262.c: | ||
print() | ||
$262.detachArrayBuffer | ||
$262.agent.* | ||
Once QuickJS releases an updated version of run-test262, | ||
this whole section will not be necessary. | ||
*/ | ||
var $262 = { | ||
evalScript() { | ||
throw new Test262Error('evalScript not yet supported.'); | ||
}, | ||
detachArrayBuffer() { | ||
throw new Test262Error('detachArrayBuffer not yet supported.'); | ||
}, | ||
agent: { | ||
start() { | ||
throw new Test262Error('agent.start not yet supported.'); | ||
}, | ||
broadcast() { | ||
throw new Test262Error('agent.broadcast not yet supported.'); | ||
}, | ||
getReport() { | ||
throw new Test262Error('agent.getReport not yet supported.'); | ||
}, | ||
sleep() { | ||
throw new Test262Error('agent.sleep not yet supported.'); | ||
}, | ||
monotonicNow() { | ||
throw new Test262Error('agent.monotonicNow not yet supported.'); | ||
}, | ||
} | ||
}; | ||
} | ||
/* run-test262 exposes a $262 object, so no need to define it */ | ||
$262.source = $SOURCE; | ||
@@ -40,0 +3,0 @@ $262.destroy = function() {}; |
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
101211
48
2022