You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The algorithm at https://tc39.es/ecma402/#sup-array.prototype.tolocalestring requires looking up a "toLocaleString" property on each non-undefined non-null element of the receiver array, invoking it as a method, and (absent an exception) passing the result through ToString. However, behavior when that lookup does not return a method or when the method call returns undefined or null appears to not be covered by test262.
The following statement list should throw an exception:
The algorithm at https://tc39.es/ecma402/#sup-array.prototype.tolocalestring requires looking up a "toLocaleString" property on each non-undefined non-null element of the receiver array, invoking it as a method, and (absent an exception) passing the result through ToString. However, behavior when that lookup does not return a method or when the method call returns
undefined
ornull
appears to not be covered by test262.The following statement list should throw an exception:
The following expression should evaluate to
"undefined"
:The following expression should evaluate to
"null"
:Every engine except JavaScriptCore seems to get this right, and bugs have now been reported there:
The text was updated successfully, but these errors were encountered: