W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

[Bug 17593] New: Figure out if something needs to be said about [[Construct]]

From: <bugzilla@jessica.w3.org>
Date: Mon, 25 Jun 2012 18:31:41 +0000
To: public-script-coord@w3.org
Message-ID: <bug-17593-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17593

           Summary: Figure out if something needs to be said about
                    [[Construct]]
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
        AssignedTo: cam@mcc.id.au
        ReportedBy: Ms2ger@gmail.com
         QAContact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org


* Ms2ger tries to figure out what kind of error new window.ImageData(1,1)
should throw
<bz> ms2ger: doesn't the spec say?
<Ms2ger> I'm not sure
<bz> ah
<bz> one sec
<Ms2ger> [[Construct]] doesn't appear in normative prose in WebIDL
<bz> " Interfaces that do not have a constructor will throw an exception when
called as a function. "
<bz> mmmm
<Ms2ger> Only, I'm not sure if it needs to
<bz> oh, hmm
<bz> it defines a [[Call]]
<Ms2ger> Yeah
<bz> that might be a spec bug
<Ms2ger> Looking at http://ecma-international.org/ecma-262/5.1/#sec-11.2.2
<bz> and even the [[Call]] doesn't say what exception is thrown
<bz> just "an exception"
<Ms2ger> "If constructor does not implement the [[Construct]] internal method,
throw a TypeError exception."
<bz> mmm
<bz> yeah
<bz> please file bugs on webidl

Cameron, please figure it out :)

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Monday, 25 June 2012 18:31:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC