mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibJS: Make string to number coercion work for doubles
This commit is contained in:
committed by
Andreas Kling
parent
7b8765c311
commit
0c14ee035c
@@ -27,9 +27,8 @@ try {
|
||||
assert(-42 === -42);
|
||||
assert(+1.23 === 1.23);
|
||||
assert(-1.23 === -1.23);
|
||||
// FIXME: returns NaN
|
||||
// assert(+"1.23" === 1.23)
|
||||
// assert(-"1.23" === -1.23)
|
||||
assert(+"1.23" === 1.23)
|
||||
assert(-"1.23" === -1.23)
|
||||
assert(+"Infinity" === Infinity);
|
||||
assert(+"+Infinity" === Infinity);
|
||||
assert(+"-Infinity" === -Infinity);
|
||||
|
||||
Reference in New Issue
Block a user