Re: on caller descriptor

2013-04-14 Thread Andrea Giammarchi
generalizing means that for any generic object we should try/catch to avoid that error ? talking about automated code ... the "whitelist" is everyday bigger :) Thanks for the answer On Sun, Apr 14, 2013 at 8:07 AM, Rick Waldron wrote: > > > On Sunday, April 14, 2013, Andrea Giammarchi wrote: >

Re: on caller descriptor

2013-04-14 Thread Rick Waldron
On Sunday, April 14, 2013, Andrea Giammarchi wrote: > I wonder if all of this is expected: > > (function(){ > "use strict"; > function caller() { > alert(caller.caller); > } > // error if invoked: caller(); > // but showing up in properties > var properties = Object.getOwnPropertyN

on caller descriptor

2013-04-14 Thread Andrea Giammarchi
I wonder if all of this is expected: (function(){ "use strict"; function caller() { alert(caller.caller); } // error if invoked: caller(); // but showing up in properties var properties = Object.getOwnPropertyNames(caller); if (properties.indexOf('caller')) { console.log(JSON