Axel Rauschmayer (2013-11-23T09:24:27.000Z)
(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
axel at rauschma.de

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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131123/f844ceb9/attachment.html>
domenic at domenicdenicola.com (2013-11-29T17:38:11.321Z)
(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