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.
+1.
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).
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss