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

The current IDL spec is defined purely in terms of [[Call]] and does not in fact say to throw on calls without new.  @travisleithead's reading in https://github.com/heycam/webidl/issues/62#issue-110316748 is correct as far as the current spec goes; step 5 is precisely "do the prose here".

There's a very longstanding spec issue to fix this: <https://www.w3.org/Bugs/Public/show_bug.cgi?id=22808>.  It hasn't happened yet because for a while it wasn't quite clear what the fixed spec should say exactly to produce the desired effect, and then there was a lack of editing bandwidth.  I'm sorry the spec here doesn't say the right thing, but I believe the right thing is in fact to throw when called without `new`.

---
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/62#issuecomment-146378261

Received on Thursday, 8 October 2015 00:25:29 UTC