You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jruby -v && jruby -e "b = binding; eval 'a = 1', b.dup; eval 'p a', b.dup"
jruby 1.7.18 (1.9.3p551) 2014-12-22 625381c on Java HotSpot(TM) 64-Bit Server VM 1.8.0_25-b17 [darwin-x86_64]
NameError: undefined local variable or method `a' for main:Object
(root) at -e:1
eval at org/jruby/RubyKernel.java:1107
(root) at -e:1
jruby -v && jruby -e "b = binding; eval 'a = 1', b.dup; eval 'p a', b.dup"
jruby 9.0.0.0-SNAPSHOT (2.2.0p0) 2015-01-01 fb9199f Java HotSpot(TM) 64-Bit Server VM 25.25-b02 on 1.8.0_25-b17 +jit [darwin-x86_64]
NameError: undefined local variable or method `a' for main:Object
(root) at -e:1
eval at org/jruby/RubyKernel.java:990
(root) at -e:1
The following code should error out, because the bindings are all being dup'ed before use:
This is needed for e.g. a more efficient fix for https://bugs.ruby-lang.org/issues/7046
The text was updated successfully, but these errors were encountered: