mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Fix toNumber consistency issue with boolean (#2456)
As per https://tc39.es/ecma262/#table-11 `toNumber(false)` is supposed to be `+0`
This commit is contained in:
parent
2fb0eca404
commit
cd6db88295
@ -17,7 +17,7 @@ const toNumberResults = [
|
||||
[undefined, NaN],
|
||||
[null, +0],
|
||||
[true, 1],
|
||||
[false, 0],
|
||||
[false, +0],
|
||||
['42', 42],
|
||||
['foo', NaN]
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user