It does indeed. I just checked in Safari and got an exception.

Thanks,

Axel

On Nov 23, 2013, at 11:00 , Yusuke SUZUKI <utatane....@gmail.com> wrote:

> JavaScriptCore implements it correctly.
> 
> ---
> Regards,
> Yusuke Suzuki
> 
> 
> On Sat, Nov 23, 2013 at 6:24 PM, Axel Rauschmayer <a...@rauschma.de> wrote:
> (Hopefully not too off-topic for es-discuss.)
> 
> Are JavaScript engines correctly implementing the operation PutValue [1]?
> 
> I’d expect the following code to throw an exception.
> Reason: Due to the second part ([[Put]] internal method), step #7 (Throw is 
> true, because the assignment happens in strict mode).
> 
> ```js
> (function () { 'use strict'; var s=''; s.foo=3 }());
> ```
> 
> But it doesn’t (not on Firefox and V8).
> 
> [1] http://ecma-international.org/ecma-262/5.1/#sec-8.7.2
> 
> -- 
> Dr. Axel Rauschmayer
> a...@rauschma.de
> 
> home: rauschma.de
> twitter: twitter.com/rauschma
> blog: 2ality.com
> 
> 
> 
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss@mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
> 
> 

-- 
Dr. Axel Rauschmayer
a...@rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com



_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to