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:
>
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
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
3 matches
Mail list logo