brendan at mozilla.com
Mon Aug 26 00:49:20 PDT 2013
Kevin Smith wrote:
> I don't think you'll want to have divergent behavior for construct vs.
> call with new APIs. I believe that would go against Allen's approach
> for new ES6 built in classes, and beyond that, it unnecessarily
> overloads the API surface. Different operations ought to have
> different names.
Date is just a botch.
Boolean, Number, and String are legacy special cases, not to be imitated
by Promise (not a value type coercer when called, primitive wrapper
object constructor when new'ed).
More information about the es-discuss