Tom Van Cutsem at
Wed Jun 11 08:16:29 PDT 2014

2014-06-11 16:48 GMT+02:00 Erik Arvidsson <erik.arvidsson at>:

> [*] Proxies are oddballs here. All Proxies have a [[Construct]] method so
> the IsConstructor will always return true which is really not what you
> want. If IsConstructor was changed to check for a .prototype instead
> proxies would behave more inline with ordinary objects.

No, only proxies whose target has a [[Construct]] method will themselves
have a [[Construct]] method. IOW, proxies should be completely transparent
w.r.t. the IsConstructor test.
See 9.5.15 ProxyCreate step 5.b.

I believe there may be a spec bug, as step 4 should explicitly exclude
[[Construct]] and [[Call]], yet seems to include all methods defined in sec
9.5. Allen?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list