https://codereview.chromium.org/649603003/diff/160001/src/objects.cc#newcode884
src/objects.cc:884: return WriteToReadOnlyElement(isolate, receiver, index,
value, strict_mode);
On 2014/10/13 12:16:36, Toon Verwaest wrote:
> You only need to throw read-only exceptions for indices within range of
string
> receivers. In all other cases, the operation is swallowed as the receiver is
> wrapped (ToObject).

As discussed off-line, this is not a behavior per spec.
[[Set]] for primitive receiver return 'false', therefore the behavior should
always be to throw read-only error.
Writing a patch to fix that.

https://codereview.chromium.org/649603003/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to