You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
370 B

/*---
{
"nonstandard": true
}
---*/
// indirect eval -> this is bound to the global object, E5 Section 10.4.2, step 1.a.
var g = (function () { var e = eval; return e('this'); } )();
/*===
[object global]
===*/
/* [[Class]] implementation defined, but we expect 'global' */
try {
print(Object.prototype.toString.call(g));
} catch (e) {
print(e.name);
}