[前][次][番号順一覧][スレッド一覧]

ruby-changes:26230

From: nobu <ko1@a...>
Date: Mon, 10 Dec 2012 11:51:08 +0900 (JST)
Subject: [ruby-changes:26230] nobu:r38287 (trunk): KNOWNBUGS.rb: exceptions in event hooks

nobu	2012-12-10 11:50:57 +0900 (Mon, 10 Dec 2012)

  New Revision: 38287

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38287

  Log:
    KNOWNBUGS.rb: exceptions in event hooks
    
    * KNOWNBUGS.rb: add tests for exceptions in event hooks, which were
      discarded in 1.8 but passed through in 1.9.

  Modified files:
    trunk/KNOWNBUGS.rb

Index: KNOWNBUGS.rb
===================================================================
--- KNOWNBUGS.rb	(revision 38286)
+++ KNOWNBUGS.rb	(revision 38287)
@@ -3,3 +3,5 @@
 # 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}')

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]