js-on-sx: Function constructor compiles + evaluates JS source
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 30s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 30s
Was unconditionally throwing "Function constructor not supported".
Now js-function-ctor joins param strings with commas, wraps the
body in (function(<params>){<body>}), and runs it through js-eval.
Now Function('a', 'b', 'return a + b')(3,4) === 7.
built-ins/Function: 0/14 → 4/14. conformance.sh: 148/148.
This commit is contained in:
@@ -1,61 +1,53 @@
|
||||
{
|
||||
"totals": {
|
||||
"pass": 23,
|
||||
"fail": 21,
|
||||
"skip": 5,
|
||||
"timeout": 1,
|
||||
"total": 50,
|
||||
"runnable": 45,
|
||||
"pass_rate": 51.1
|
||||
"pass": 4,
|
||||
"fail": 10,
|
||||
"skip": 16,
|
||||
"timeout": 0,
|
||||
"total": 30,
|
||||
"runnable": 14,
|
||||
"pass_rate": 28.6
|
||||
},
|
||||
"categories": [
|
||||
{
|
||||
"category": "built-ins/Array",
|
||||
"total": 50,
|
||||
"pass": 23,
|
||||
"fail": 21,
|
||||
"skip": 5,
|
||||
"timeout": 1,
|
||||
"pass_rate": 51.1,
|
||||
"category": "built-ins/Function",
|
||||
"total": 30,
|
||||
"pass": 4,
|
||||
"fail": 10,
|
||||
"skip": 16,
|
||||
"timeout": 0,
|
||||
"pass_rate": 28.6,
|
||||
"top_failures": [
|
||||
[
|
||||
"Test262Error (assertion failed)",
|
||||
18
|
||||
"SyntaxError (parse/unsupported syntax)",
|
||||
4
|
||||
],
|
||||
[
|
||||
"TypeError: not a function",
|
||||
2
|
||||
"ReferenceError (undefined symbol)",
|
||||
3
|
||||
],
|
||||
[
|
||||
"Timeout",
|
||||
1
|
||||
],
|
||||
[
|
||||
"Unhandled: Not callable: {:2 43 :1 42 :0 41 :length 3}\\",
|
||||
1
|
||||
"TypeError (other)",
|
||||
3
|
||||
]
|
||||
]
|
||||
}
|
||||
],
|
||||
"top_failure_modes": [
|
||||
[
|
||||
"Test262Error (assertion failed)",
|
||||
18
|
||||
"SyntaxError (parse/unsupported syntax)",
|
||||
4
|
||||
],
|
||||
[
|
||||
"TypeError: not a function",
|
||||
2
|
||||
"ReferenceError (undefined symbol)",
|
||||
3
|
||||
],
|
||||
[
|
||||
"Timeout",
|
||||
1
|
||||
],
|
||||
[
|
||||
"Unhandled: Not callable: {:2 43 :1 42 :0 41 :length 3}\\",
|
||||
1
|
||||
"TypeError (other)",
|
||||
3
|
||||
]
|
||||
],
|
||||
"pinned_commit": "d5e73fc8d2c663554fb72e2380a8c2bc1a318a33",
|
||||
"elapsed_seconds": 141.9,
|
||||
"elapsed_seconds": 11.2,
|
||||
"workers": 1
|
||||
}
|
||||
Reference in New Issue
Block a user