mirror of https://github.com/tc39/test262.git
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],
|
[undefined, NaN],
|
||||||
[null, +0],
|
[null, +0],
|
||||||
[true, 1],
|
[true, 1],
|
||||||
[false, 0],
|
[false, +0],
|
||||||
['42', 42],
|
['42', 42],
|
||||||
['foo', NaN]
|
['foo', NaN]
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue