getPrototypeOf invariant

David Bruant bruant.d at
Thu Oct 4 13:12:21 PDT 2012

Le 04/10/2012 22:01, Mark S. Miller a écrit :
> If the extensible proxy has no access to the original
> Object.prototype.__proto__, then it cannot modify the [[Prototype]] of
> its target, and so should not be able to seem to have its own mutable
> [[Prototype]]
Ok, so the rationale behind the invariant is:
You can report a different prototype only if you're able to modify it on
the target.

And it makes a lot of sense indeed. Sorry it took me about 3 round-trips
to understand this :-s


More information about the es-discuss mailing list