[Bug 25050] Should Constructors behave like operations or (attribute) setters?


--- Comment #2 from Boris Zbarsky <bzbarsky@mit.edu> ---
Put another way, in pseudocode a WebIDL constructor looks like this:

  function myConstructor() {
    [f, args] = selectOverloadAndCoerceArgs(arguments);
    return f.call(args);

where the behavior of "f" is defined by whatever specification is defining the
constructor (and might set attributes on the object, or do something else; who
knows) and the coercions performed to produce "args" are defined by WebIDL. 
The latter are what throws when an out-of-the-set value is passed for an

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

Received on Friday, 14 March 2014 14:18:33 UTC