aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/kernel/fixtures/eval_return_without_lambda.rb
blob: fc8b7f1d4a61bdeb76a44427d8aed4e99820556b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
print "a,"
begin
  print "b,"
  x = Proc.new do
    print "c,"
    eval("return :eval")
    print "d,"
  end.call
  print x, ","
rescue LocalJumpError => e
  print "e,"
  print e.class, ","
end
print "f"