> Because the location info will be that of the "new Error"? One could
> try this instead, which seems to work for me:
>
> throw { __proto__ : new Error(), reason: "Monday" }That one seems to be working (except in IE<11 since IE didn't support __proto__ prior to that). That somehow surprises me that browser "unwrap" the prototype chain but they seem to do in this case. _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

