File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/scala/org/scijava/plugins/scripting/scala Expand file tree Collapse file tree 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
9898 // First try to get value from bindings
9999 var value = super .get(key)
100100
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.
107107 if value == null then
108108 try
109109 value = evalInner(key, getContext)
You can’t perform that action at this time.
0 commit comments