W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2015

[Bug 22808] Throw if object is constructed without new

From: <bugzilla@jessica.w3.org>
Date: Mon, 09 Feb 2015 17:10:07 +0000
To: public-script-coord@w3.org
Message-ID: <bug-22808-3890-0qbuu7bAjD@http.www.w3.org/Bugs/Public/>

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

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:23 UTC