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:
Lo̹̫̦̥̬̜͈͝n̗͚̼̤ĝ̮̫͎̬̬͕̪ͫ̐̕ ͭ̊H̱̏ͬ̃ͨ̆͗o̱͚͉͉̖̰̪ͯ̈ͪ̈̎̚ 2020-01-08 16:24:19 -05:00 committed by Leo Balter
parent 2fb0eca404
commit cd6db88295
1 changed files with 1 additions and 1 deletions

View File

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