Files
ladybird/Libraries/LibJS
Linus Groh da0ab16f01 LibJS: Don't handle arrays separately in Value::to_number()
Now that Array.prototype.join() is producing the correct results we
can remove the separate code path for arrays in Value::to_number()
and treat them like all other objects - using to_primitive() with
number as the preferred type and then calling to_number() on the
result.

This is how the spec descibes it.

This also means we don't crash anymore when trying to coerce
[<empty>] to a number - it now does the following:

[<empty>] - to string - "" - to number - 0
[<empty>, <empty>] - to string - "," - to number - NaN
2020-04-29 01:30:59 +02:00
..
2020-04-28 20:37:21 +02:00
2020-04-28 15:07:08 +02:00
2020-04-14 12:54:09 +02:00
2020-04-22 11:48:14 +02:00
2020-04-27 11:32:18 +02:00