* add global variable "global" as a reference to the global object
This commit is contained in:
parent
d5d5fb49ba
commit
4bb6f72baa
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ public class DynamicGlobalObject extends GlobalObject {
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// make thread scope accessible as "global"
|
||||||
|
if ("global".equals(s)) {
|
||||||
|
return scope;
|
||||||
|
}
|
||||||
return super.get(s, scriptable);
|
return super.get(s, scriptable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue