1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* iseq_compile_each (NODE_DEFINED): put nil first to fix stack

consistency.  [ruby-core:30293]
  Now, lfinish[0] of defined_expr seems not to be used.  Refactoring
  may be needed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-05-19 10:48:17 +00:00
parent 7eb7f063a4
commit 59af57e257
3 changed files with 20 additions and 2 deletions

View file

@ -890,3 +890,13 @@ assert_valid_syntax('x y { "#{}".z { } }', bug1240)
assert_valid_syntax('x y { "#{}".z do end }', bug1240)
assert_valid_syntax('y "#{a 1}" do end', '[ruby-core:29579]')
assert_normal_exit %q{
def foo(&block)
yield
end
foo do
s = defined?(raise + 1)
Class
end
}, '[ruby-core:30293]'