IsConstructor

C. Scott Ananian ecmascript at cscott.net
Thu Jun 12 11:47:00 PDT 2014


On Thu, Jun 12, 2014 at 2: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
>    C[Symbol.new](...args)
> and the construct trap could be removed from proxies altogether.  :-|

+1.

`Function.@@new` could be added to ES7, but the ugly construct trap
will be with us forever.
  --scott


More information about the es-discuss mailing list