Commit 669e117d authored by Per Bothner's avatar Per Bothner

* AbstractScriptEngineFactory.java (getEnvironment): Make public.

Make it easier to use script neviorment as dynamic environment.
parent 12bf5757
Pipeline #132870734 passed with stage
in 11 minutes and 19 seconds
......@@ -16,7 +16,9 @@ public abstract class AbstractScriptEngineFactory implements ScriptEngineFactory
Bindings saveEngineBindings;
Bindings saveGlobalBindings;
Environment getEnvironment(ScriptContext ctx) {
/** Wrap the scope parts of a ScriptContext as an Environment.
*/
public Environment getEnvironment(ScriptContext ctx) {
Bindings ebindings = ctx.getBindings(ScriptContext.ENGINE_SCOPE);
Bindings gbindings = ctx.getBindings(ScriptContext.GLOBAL_SCOPE);
if (ebindings == saveEngineBindings && gbindings == saveGlobalBindings)
......
2020-04-04 Per Bothner <per@bothner.com>
* AbstractScriptEngineFactory.java (getEnvironment): Make public.
Make it easier to use script neviorment as dynamic environment.
2020-04-03 Per Bothner <per@bothner.com>
* KawaScriptEngine.java (compile): Better fix to parse.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment