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

test_exception.rb: NameError at FCALL

* test/ruby/test_exception.rb (test_name_error_info): add
  assertions for FCALL.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-02-03 07:37:19 +00:00
parent 6bc6708b97
commit fc6073bde4

View file

@ -689,6 +689,12 @@ end.join
assert_equal(:foo, e.name)
assert_equal([1, 2], e.args)
assert_same(obj, e.receiver)
e = assert_raise(NoMethodError) {
obj.instance_eval {foo(1, 2)}
}
assert_equal(:foo, e.name)
assert_equal([1, 2], e.args)
assert_same(obj, e.receiver)
def obj.test(a, b=nil, *c, &d)
e = a
1.times {|f| g = foo}