* add global variable "global" as a reference to the global object

This commit is contained in:
hns 2005-11-16 10:17:09 +00:00
parent d5d5fb49ba
commit 4bb6f72baa

View file

@ -40,6 +40,10 @@ public class DynamicGlobalObject extends GlobalObject {
return obj;
}
}
// make thread scope accessible as "global"
if ("global".equals(s)) {
return scope;
}
return super.get(s, scriptable);
}