fork download
  1. function getGlobalObject()
  2. {
  3. return function() { return this; }();
  4. }
  5.  
  6. print(getGlobalObject());
  7. var go = getGlobalObject();
  8. for(var p in go)
  9. print(p);
Success #stdin #stdout 0.01s 5124KB
stdin
Standard input is empty
stdout
[object global]
getGlobalObject
go
p