Permalink
Browse files

Merge pull request #1343 from krekoten/core_kernel_local_variables_19

Kernel.local_variables resturns array of symbols in 1.9 mode
  • Loading branch information...
2 parents 103241b + 25a1478 commit fedd69b50692403f5265daa9059d7101528215fb @dbussink dbussink committed Oct 23, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −2 kernel/common/eval.rb
  2. +0 −2 spec/tags/19/ruby/core/kernel/local_variables_tags.txt
View
@@ -11,7 +11,7 @@ def local_variables
while scope
if scope.method.local_names
scope.method.local_names.each do |name|
- name = name.to_s
+ name = name
locals << name
end
end
@@ -22,7 +22,7 @@ def local_variables
scope = scope.parent
end
- locals
+ Rubinius.convert_to_names(locals)
end
module_function :local_variables
@@ -1,2 +0,0 @@
-fails:Kernel.local_variables contains locals as they are added
-fails:Kernel.local_variables is accessable from bindings

0 comments on commit fedd69b

Please sign in to comment.