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

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

--- Comment #3 from Nils Barth <nbarth+w3bugzilla@google.com> ---
(In reply to Boris Zbarsky from comment #2)

Thanks for clarifying Boris!
Agreed that the spec is unambiguous, but the behavior is a bit buried.

Perhaps a note to the effect that constructors behave like operations for
arguments could be added?

For example:
[[
Note:
Constructors and operations use the same overload resolution algorithm for
identification of which overloaded operation, constructor, etc. is being
called, and for conversion of the ECMAScript argument values to their
corresponding IDL values.
]]

...right after:
[[
See section 4.5.1.1 below for details on how a constructor for an interface is
to be implemented, and section 4.5.3 for how a constructor for a dictionary is
to be implemented.
]]

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

Received on Wednesday, 26 March 2014 05:08:49 UTC