https://codereview.chromium.org/342453002/diff/40001/src/accessors.cc
File src/accessors.cc (right):
https://codereview.chromium.org/342453002/diff/40001/src/accessors.cc#newcode184
src/accessors.cc:184: MaybeHandle<Object> maybe =
Object::SetDataProperty(&it, value);
On 2014/08/18 13:47:25, Toon Verwaest wrote:
What's the expected behavior exactly? Can't you just use
SetProperty(&it,
value), or SetOwnPropertyIgnoreAttributes?
As Erik says the intent is that arguments[@@iterator] is just a data
property. It has to be implemented using API accessor callbacks because
we know what the value should be for it, and we don't want to bloat the
accessor object with a different word. But if someone does
arguments[@@iterator] = 10, it should replace the API accessors with a
normal data property.
https://codereview.chromium.org/342453002/
--
--
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.