Closed JohnBrinkman closed 1 year ago
The spec indicates that the conversion of objects and arrays to number are not supported:
array => string object => string array => number object => number object => array number => object string => object boolean => object
There are two inconsistencies:
{w:2} * 2 => 0 (with a warning) abs({w:2}) fails with: "TypeError: abs expected argument to be type number but received type object instead."
{w:2} * 2 => 0
abs({w:2})
These should either both coerce to zero, or both fail. Recommend they both fail.
Implemented
The spec indicates that the conversion of objects and arrays to number are not supported:
array => string object => string array => number object => number object => array number => object string => object boolean => object
There are two inconsistencies:
{w:2} * 2 => 0
(with a warning)abs({w:2})
fails with: "TypeError: abs expected argument to be type number but received type object instead."These should either both coerce to zero, or both fail. Recommend they both fail.