On 2015/03/04 14:44:11, caitp wrote:
So Runtime_NewObjectHelper creates an object using the initial map of whatever the constructor was, and then __maybe__ sets __proto__ to the prototype of the original constructor. That doesn't seem right to me, but I'm sure there are
good
reasons for doing this, maybe it's okay to leave it as-is for now?

This is absolutely correct.

  Reflect.construct(Array, [], C)

invokes Array.[[Construct]] trap with [] for argumentsList and C for new Target.
For Arrays this constructs an exotic object (Array) with __proto__ being
C.prototype.

This is what your CL does

https://codereview.chromium.org/913073003/

--
--
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