On 3/23/11, Mike Shaver <[email protected]> wrote:
> On Wed, Mar 23, 2011 at 6:21 PM, Garrett Smith <[email protected]>
> wrote:
>> javascript: alert(new InternalError("Got on tha inside, bitch!"));
>>
>> Hrm. seems odd to expose the constructor publicly.
>
> Necessary to permit instanceof testing, no?
>
>> The infinite recursion could be detected and reported early. Where
>> does that happen? Does any engine report early for infinite recursion?
>
No; instanceof uses [[HasInstance]] which compares the Function's
prototype property to the each objet in the object's prototype chain.
If there is a match, the result is true. Otherwise, the result is
false.
-- 
Garrett
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to