1
0
mirror of https://github.com/tc39/test262.git synced 2025-04-08 19:35:28 +02:00

Fix toNumber consistency issue with boolean ()

As per https://tc39.es/ecma262/#table-11 `toNumber(false)` is supposed to be `+0`
This commit is contained in:
Lo̹̫̦̥̬̜͈͝n̗͚̼̤ĝ̮̫͎̬̬͕̪ͫ̐̕ ͭ̊H̱̏ͬ̃ͨ̆͗o̱͚͉͉̖̰̪ͯ̈ͪ̈̎̚ 2020-01-08 16:24:19 -05:00 committed by Leo Balter
parent 2fb0eca404
commit cd6db88295

@ -17,7 +17,7 @@ const toNumberResults = [
[undefined, NaN],
[null, +0],
[true, 1],
[false, 0],
[false, +0],
['42', 42],
['foo', NaN]
];