Skip to content

Commit

Permalink
Fix sharing variables over JSR223 compiled script. The related last c…
Browse files Browse the repository at this point in the history
…ommit, 9ba0425, was not enough. This is a complement.
  • Loading branch information
yokolet committed Jan 13, 2010
1 parent 2555b05 commit 53da2b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/org/jruby/embed/jsr223/JRubyCompiledScript.java
Expand Up @@ -69,6 +69,7 @@ public class JRubyCompiledScript extends CompiledScript {

public Object eval(ScriptContext context) throws ScriptException {
try {
engine.setContext(context);
IRubyObject ret = unit.run();
if (!(ret instanceof RubyNil)) {
return JavaEmbedUtils.rubyToJava(ret);
Expand Down

0 comments on commit 53da2b1

Please sign in to comment.