js-on-sx: js-new-call accepts list-typed constructor returns
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 1m1s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 1m1s
new Array(1,2,3) was returning an empty wrapper object because js-new-call only honoured a non-undefined return when (type-of ret) === "dict"; SX lists (representing JS arrays) were silently discarded. Widened the check to accept "list" too. Fixes new Array(1,2,3).length, String(new Array(1,2,3)), and any constructor whose body returns a list. built-ins/String: 67/99 → 69/99 (canonical). conformance.sh: 148/148.
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
{
|
||||
"totals": {
|
||||
"pass": 67,
|
||||
"fail": 26,
|
||||
"pass": 69,
|
||||
"fail": 24,
|
||||
"skip": 1,
|
||||
"timeout": 6,
|
||||
"total": 100,
|
||||
"runnable": 99,
|
||||
"pass_rate": 67.7
|
||||
"pass_rate": 69.7
|
||||
},
|
||||
"categories": [
|
||||
{
|
||||
"category": "built-ins/String",
|
||||
"total": 100,
|
||||
"pass": 67,
|
||||
"fail": 26,
|
||||
"pass": 69,
|
||||
"fail": 24,
|
||||
"skip": 1,
|
||||
"timeout": 6,
|
||||
"pass_rate": 67.7,
|
||||
"pass_rate": 69.7,
|
||||
"top_failures": [
|
||||
[
|
||||
"Test262Error (assertion failed)",
|
||||
14
|
||||
12
|
||||
],
|
||||
[
|
||||
"TypeError: not a function",
|
||||
@@ -44,7 +44,7 @@
|
||||
"top_failure_modes": [
|
||||
[
|
||||
"Test262Error (assertion failed)",
|
||||
14
|
||||
12
|
||||
],
|
||||
[
|
||||
"TypeError: not a function",
|
||||
@@ -68,6 +68,6 @@
|
||||
]
|
||||
],
|
||||
"pinned_commit": "d5e73fc8d2c663554fb72e2380a8c2bc1a318a33",
|
||||
"elapsed_seconds": 364.7,
|
||||
"elapsed_seconds": 344.4,
|
||||
"workers": 1
|
||||
}
|
||||
Reference in New Issue
Block a user