Re: [heycam/webidl] does [Constructor] invocation require 'new' or not (generally)? (#62)

@tobie See previous discussion in https://www.w3.org/Bugs/Public/show_bug.cgi?id=22808 but there was also some discussion somewhere that I can't find right now....

What we really want to do is to neither define [[Call]] nor [[Construct]] but simply define the behavior of "evaluating F in an implementation defined manner that conforms to the specification of F" as invoked from https://tc39.github.io/ecma262/#sec-built-in-function-objects-call-thisargument-argumentslist step 10.  Otherwise we have to duplicate all the other bookeeping that https://tc39.github.io/ecma262/#sec-built-in-function-objects-call-thisargument-argumentslist does, and we would really rather avoid that.

And within "evaluating F in an implementation defined manner that conforms to the specification of F" the only way to do the `new` thing we want is to check `NewTarget`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/62#issuecomment-256047980

Received on Tuesday, 25 October 2016 14:19:11 UTC