mirror of https://github.com/svaarala/duktape.git
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.
23 lines
366 B
23 lines
366 B
12 years ago
|
|
||
|
/*---
|
||
|
{
|
||
|
"custom": 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);
|
||
|
}
|
||
|
|