Unspecified Error.call

David Bruant bruant.d at gmail.com
Tue Jul 24 08:42:50 PDT 2012


Le 24/07/2012 17:40, Jussi Kalliokoski a écrit :
> I would expect that since Error works without `new`, it would 
> disregard `this`, hence that call would just return a new Error, so:
>
> Error.call(o, 'ya') instanceof Error // true
... true.

Error.call(o, 'ya').message === 'ya';

My bad.

David


More information about the es-discuss mailing list