vm_trace.c: exceptions in event hooks

* vm_trace.c (rb_threadptr_exec_event_hooks): exceptions in event
  hooks should not propagate outside.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-12-10 06:23:44 +00:00
parent c9b4b78085
commit 13e83d055f
4 changed files with 22 additions and 9 deletions

View file

@ -3,5 +3,3 @@
# So all tests will cause failure.
#
assert_equal('ok', "TracePoint.new(:line) {raise}.enable {\n 1\n}\n'ok'")
assert_finish(3, 'def m; end; TracePoint.new(:return) {raise}.enable {m}')