On 2015/03/03 14:25:52, arv wrote:
You should be able to test new.target by doing something like.
function C() {
this[9] = 1;
}
var o = Reflect.construct(C, [], Array);
assertSame(C.prototype, o.__proto__);
assertSame(10, o.length);
Well, this test makes sense, but doesn't actually work currently. The
object is
created with the right prototype (for Array), but setting the element does
not
appear to affect the length, as though the Array length setter is never
invoked.
That's really weird =)
Anyways I'll at least assert that it has the right prototype
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.