File tree 1 file changed +6
-6
lines changed
src/main/scala/org/scijava/plugins/scripting/scala
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,12 @@ class ScalaAdaptedScriptEngine(engine: ScriptEngine) extends AbstractScriptEngin
98
98
// First try to get value from bindings
99
99
var value = super .get(key)
100
100
101
- // NB: Extracting values from Scala Script Engine are a little tricky.// NB: Extracting values from Scala Script Engine are a little tricky.
102
- // Values (variables) initialised or computed in the script are// Values (variables) initialised or computed in the script are
103
- // not added to the bindings of the CompiledScript AFAICT. Therefore// not added to the bindings of the CompiledScript AFAICT. Therefore
104
- // the only way to extract them is to evaluate the variable and// the only way to extract them is to evaluate the variable and
105
- // capture the return. If it evaluates to null or throws a// capture the return. If it evaluates to null or throws a
106
- // a ScriptException, we simply return null.// a ScriptException, we simply return null.
101
+ // NB: Extracting values from Scala Script Engine are a little tricky.
102
+ // Values (variables) initialised or computed in the script are
103
+ // not added to the bindings of the CompiledScript AFAICT. Therefore
104
+ // the only way to extract them is to evaluate the variable and
105
+ // capture the return. If it evaluates to null or throws a
106
+ // a ScriptException, we simply return null.
107
107
if value == null then
108
108
try
109
109
value = evalInner(key, getContext)
You can’t perform that action at this time.
0 commit comments