[Bug 22808] Throw if object is constructed without new

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22808

--- Comment #13 from Boris Zbarsky <bzbarsky@mit.edu> ---
OK.  So it sounds like for Web IDL constructors we should make the following
changes:

1)  [[Construct]] does what [[Call] does right now in the Web IDL spec.
2)  [[Call]] just throws a typeerror.

Or we could use the default [[Call]] and set the [[FunctionKind]] thing, but it
seems simpler to just do the above, I think.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Monday, 9 February 2015 17:10:09 UTC