jason.orendorff at gmail.com
Thu Jun 12 11:31:57 PDT 2014
On Thu, Jun 12, 2014 at 1:30 PM, Jason Orendorff
<jason.orendorff at gmail.com> wrote:
> I *really* wish we just had an @@new for this, such that
> new C(...args)
> is just shorthand for
> and the construct trap could be removed from proxies altogether. :-|
I forgot to add: then the rare code that really wants to ask "is x a
constructor?" can say
if (x[Symbol.new] !== undefined) ...
like Array.from does for @@iterator.
More information about the es-discuss