We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jruby-complete-9.2.0.0.jar MacOS Darwin
import org.jruby.embed.jsr223.JRubyEngineFactory; import javax.script.ScriptEngine; public class jruby { public static void main(String[] args) throws Exception { ScriptEngine scriptEngine = new JRubyEngineFactory().getScriptEngine(); scriptEngine.put("foo", "bar"); scriptEngine.eval("puts $foo"); } }
With JRuby 9.1.12.0 this outputs "bar" as expected.
With JRuby 9.2.0.0 the output is empty
$ java -cp jruby-complete-9.1.12.0.jar:. jruby bar $ java -cp jruby-complete-9.2.0.0.jar:. jruby
The text was updated successfully, but these errors were encountered:
but scriptEngine.eval("puts foo") likely does? ... if I recall right the var scope was switched to local
scriptEngine.eval("puts foo")
Sorry, something went wrong.
I see, yes it does. Ok, as the change is intentional we can work around it on our side.
No branches or pull requests
Environment
jruby-complete-9.2.0.0.jar
MacOS Darwin
Expected Behavior
With JRuby 9.1.12.0 this outputs "bar" as expected.
Actual Behavior
With JRuby 9.2.0.0 the output is empty
The text was updated successfully, but these errors were encountered: