js-on-sx: Object.__callable__ returns this for new Object() no-args
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 43s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 43s
js-new-call Object had set obj.__proto__ correctly, but then the __callable__ returned a fresh (dict), which js-new-call's "use returned dict over obj" rule honoured — losing the proto. Added is-new check (this.__proto__ === Object.prototype) and return this instead of a new dict when invoked as a constructor with no/null args. Now new Object().__proto__ === Object.prototype. built-ins/Object: 37/50 → 41/50. conformance.sh: 148/148.
This commit is contained in:
@@ -1,61 +1,61 @@
|
||||
{
|
||||
"totals": {
|
||||
"pass": 78,
|
||||
"fail": 15,
|
||||
"skip": 1,
|
||||
"timeout": 6,
|
||||
"total": 100,
|
||||
"runnable": 99,
|
||||
"pass_rate": 78.8
|
||||
"pass": 41,
|
||||
"fail": 9,
|
||||
"skip": 0,
|
||||
"timeout": 0,
|
||||
"total": 50,
|
||||
"runnable": 50,
|
||||
"pass_rate": 82.0
|
||||
},
|
||||
"categories": [
|
||||
{
|
||||
"category": "built-ins/String",
|
||||
"total": 100,
|
||||
"pass": 78,
|
||||
"fail": 15,
|
||||
"skip": 1,
|
||||
"timeout": 6,
|
||||
"pass_rate": 78.8,
|
||||
"category": "built-ins/Object",
|
||||
"total": 50,
|
||||
"pass": 41,
|
||||
"fail": 9,
|
||||
"skip": 0,
|
||||
"timeout": 0,
|
||||
"pass_rate": 82.0,
|
||||
"top_failures": [
|
||||
[
|
||||
"Test262Error (assertion failed)",
|
||||
13
|
||||
],
|
||||
[
|
||||
"Timeout",
|
||||
6
|
||||
],
|
||||
[
|
||||
"ReferenceError (undefined symbol)",
|
||||
1
|
||||
4
|
||||
],
|
||||
[
|
||||
"SyntaxError (parse/unsupported syntax)",
|
||||
2
|
||||
],
|
||||
[
|
||||
"Test262Error (assertion failed)",
|
||||
2
|
||||
],
|
||||
[
|
||||
"runner-error: sx_server closed stdout mid-epoch",
|
||||
1
|
||||
]
|
||||
]
|
||||
}
|
||||
],
|
||||
"top_failure_modes": [
|
||||
[
|
||||
"Test262Error (assertion failed)",
|
||||
13
|
||||
],
|
||||
[
|
||||
"Timeout",
|
||||
6
|
||||
],
|
||||
[
|
||||
"ReferenceError (undefined symbol)",
|
||||
1
|
||||
4
|
||||
],
|
||||
[
|
||||
"SyntaxError (parse/unsupported syntax)",
|
||||
2
|
||||
],
|
||||
[
|
||||
"Test262Error (assertion failed)",
|
||||
2
|
||||
],
|
||||
[
|
||||
"runner-error: sx_server closed stdout mid-epoch",
|
||||
1
|
||||
]
|
||||
],
|
||||
"pinned_commit": "d5e73fc8d2c663554fb72e2380a8c2bc1a318a33",
|
||||
"elapsed_seconds": 226.1,
|
||||
"elapsed_seconds": 37.1,
|
||||
"workers": 1
|
||||
}
|
||||
Reference in New Issue
Block a user