Permalink
Browse files

Kernel.local_variables resturns array of symbols in 1.9 mode

  • Loading branch information...
1 parent 103241b commit 25a1478dc89f8c6faf14ef075baec872afc03991 @krekoten krekoten 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
4 kernel/common/eval.rb
@@ -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
View
2 spec/tags/19/ruby/core/kernel/local_variables_tags.txt
@@ -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 25a1478

Please sign in to comment.