summaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_eval.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-26 03:37:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-26 03:37:08 +0000
commita307e843ce9e32f880eeff6f119bb819df6c3d6b (patch)
tree071d70ddc6aa9d9f0911118f5f2eccd9155f8a92 /bootstraptest/test_eval.rb
parent62d349b41ad05a7b9058c5eb6a6632b6eda951c1 (diff)
downloadruby-a307e843ce9e32f880eeff6f119bb819df6c3d6b.tar.gz
ruby-a307e843ce9e32f880eeff6f119bb819df6c3d6b.tar.xz
ruby-a307e843ce9e32f880eeff6f119bb819df6c3d6b.zip
* vm.c (collect_local_variables_in_env): skips internal variables.
[ruby-core:25125] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_eval.rb')
-rw-r--r--bootstraptest/test_eval.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/bootstraptest/test_eval.rb b/bootstraptest/test_eval.rb
index 6dc23468c..452ce4310 100644
--- a/bootstraptest/test_eval.rb
+++ b/bootstraptest/test_eval.rb
@@ -297,5 +297,14 @@ assert_equal "(eval):1:in `block in <main>': ", %q{
rescue => e
e.message
end
-}, ' [ruby-dev:35392]'
+}, '[ruby-dev:35392]'
+assert_equal "[:x]", %q{
+ def kaboom!
+ yield.eval("local_variables")
+ end
+
+ for x in enum_for(:kaboom!)
+ binding
+ end
+}, '[ruby-core:25125]'