{}+{} incosistency

Allen Wirfs-Brock allen at wirfs-brock.com
Wed Apr 13 16:04:53 UTC 2016

> On Apr 13, 2016, at 8:11 AM, Caitlin Potter <caitpotter88 at gmail.com> wrote:
> The thing is, V8 is getting this right, at least in ecma262 6.0 and later. I haven’t checked ES5 to see if this has changed

ES6 refactored ToPrimitive but the semantics (except for the @@toPrimitive hook) did not change from ES5.1 (or ES3, for that matter).  The ES5 equivalent is at http://ecma-international.org/ecma-262/5.1/#sec-8.12.8 <http://ecma-international.org/ecma-262/5.1/#sec-8.12.8> 

The V8 result is correct


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160413/be6027e8/attachment.html>

More information about the es-discuss mailing list