W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2010

Re: [WebIDL] interface objects with [Constructor] and [[Call]]

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 8 Oct 2010 19:24:57 +1300
To: Simon Pieters <simonp@opera.com>
Cc: Garrett Smith <dhtmlkitchen@gmail.com>, "Mark S. Miller" <erights@google.com>, Maciej Stachowiak <mjs@apple.com>, James Graham <jgraham@opera.com>, Travis Leithead <travil@microsoft.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, annevk@opera.com
Message-ID: <20101008062456.GH3608@wok.mcc.id.au>
Simon Pieters:
> At this point I'm confused at what you intend to change the spec to say.

Sorry for being unclear.  The practical options to choose between are:

  1. Special case XHR to allow calling it to do the same thing as
     constructing it, and just throw a TypeError for other constructors
     called as functions.

  2. Allow all constructors to be called as functions and have the same

I’ll make the spec do (2).

Cameron McCormack ≝ http://mcc.id.au/
Received on Friday, 8 October 2010 06:25:38 UTC

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