js-on-sx: Boolean(NaN) === false
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 45s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 45s
js-to-boolean was returning true for NaN because NaN != 0 by IEEE semantics — the (= v 0) test fell through to the truthy else. Per ES, NaN is one of the falsy values. Added a (js-number-is-nan v) clause. built-ins/Boolean: 19/27 → 21/27. conformance.sh: 148/148.
This commit is contained in:
@@ -1,61 +1,45 @@
|
||||
{
|
||||
"totals": {
|
||||
"pass": 80,
|
||||
"fail": 11,
|
||||
"skip": 1,
|
||||
"timeout": 8,
|
||||
"total": 100,
|
||||
"runnable": 99,
|
||||
"pass_rate": 80.8
|
||||
"pass": 44,
|
||||
"fail": 3,
|
||||
"skip": 0,
|
||||
"timeout": 3,
|
||||
"total": 50,
|
||||
"runnable": 50,
|
||||
"pass_rate": 88.0
|
||||
},
|
||||
"categories": [
|
||||
{
|
||||
"category": "built-ins/String",
|
||||
"total": 100,
|
||||
"pass": 80,
|
||||
"fail": 11,
|
||||
"skip": 1,
|
||||
"timeout": 8,
|
||||
"pass_rate": 80.8,
|
||||
"category": "built-ins/Number",
|
||||
"total": 50,
|
||||
"pass": 44,
|
||||
"fail": 3,
|
||||
"skip": 0,
|
||||
"timeout": 3,
|
||||
"pass_rate": 88.0,
|
||||
"top_failures": [
|
||||
[
|
||||
"Test262Error (assertion failed)",
|
||||
9
|
||||
],
|
||||
[
|
||||
"Timeout",
|
||||
8
|
||||
3
|
||||
],
|
||||
[
|
||||
"ReferenceError (undefined symbol)",
|
||||
1
|
||||
],
|
||||
[
|
||||
"SyntaxError (parse/unsupported syntax)",
|
||||
1
|
||||
"Test262Error (assertion failed)",
|
||||
3
|
||||
]
|
||||
]
|
||||
}
|
||||
],
|
||||
"top_failure_modes": [
|
||||
[
|
||||
"Test262Error (assertion failed)",
|
||||
9
|
||||
],
|
||||
[
|
||||
"Timeout",
|
||||
8
|
||||
3
|
||||
],
|
||||
[
|
||||
"ReferenceError (undefined symbol)",
|
||||
1
|
||||
],
|
||||
[
|
||||
"SyntaxError (parse/unsupported syntax)",
|
||||
1
|
||||
"Test262Error (assertion failed)",
|
||||
3
|
||||
]
|
||||
],
|
||||
"pinned_commit": "d5e73fc8d2c663554fb72e2380a8c2bc1a318a33",
|
||||
"elapsed_seconds": 507.4,
|
||||
"elapsed_seconds": 110.0,
|
||||
"workers": 1
|
||||
}
|
||||
Reference in New Issue
Block a user