summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext/mrblib/array.rb
diff options
context:
space:
mode:
authordearblue <[email protected]>2021-06-26 11:00:32 +0900
committerdearblue <[email protected]>2021-06-26 11:00:32 +0900
commit52b29f41a3f8364712f14aad69186eb69b825b10 (patch)
tree6c87903412143d19b2ea0b5e2608038c5ced21c0 /mrbgems/mruby-array-ext/mrblib/array.rb
parent5fc301f07d0ce26ab93ff237d15fa81894c9f1d6 (diff)
downloadmruby-52b29f41a3f8364712f14aad69186eb69b825b10.tar.gz
mruby-52b29f41a3f8364712f14aad69186eb69b825b10.zip
Fixed finding variables defined in the upper proc failed
If no new variable was defined in the `eval` method, the variable was hidden from the nested `eval` method. ```ruby a = 1 p eval %(b = 2; eval %(a)) # => 1 (good) p eval %(eval %(a)) # => undefined method 'a' (NoMethodError) ``` This issue has occurred since mruby 3.0.0.
Diffstat (limited to 'mrbgems/mruby-array-ext/mrblib/array.rb')
0 files changed, 0 insertions, 0 deletions