Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upCannot create proxy for class constructor #312
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
ljharb
Jan 22, 2016
Member
Class constructors do have [[Call]], it's just specified to throw a TypeError. See http://tc39.github.io/ecma262/#sec-makeclassconstructor, and step 2 of http://tc39.github.io/ecma262/#sec-ecmascript-function-objects-call-thisargument-argumentslist.
|
Class constructors do have |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
raulsebastianmihaila
commented
Jan 22, 2016
|
I see, thanks! |
raulsebastianmihaila
closed this
Jan 22, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
raulsebastianmihaila commentedJan 22, 2016
ProxyCreate (http://www.ecma-international.org/ecma-262/6.0/#sec-proxycreate) doesn't set the [[Construct]] method if the target isn't callable (doesn't have [[Call]]). AFAIK, class constructors don't have [[Call]]. Is this a bug?