[MacRuby] #842: Can't catch the exception of SecurityError Level 4.

MacRuby ruby-noreply at macosforge.org
Mon Aug 23 17:44:44 PDT 2010


#842: Can't catch the exception of SecurityError Level 4.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------

Comment(by lsansonetti@…):

 Interesting indeed.

 {{{
 $ ruby1.9 -e 'def foo; yield; end; foo { $SAFE=3 }; p $SAFE'
 3
 $ ruby1.9 -e 'def foo(&b); b.call; end; foo { $SAFE=3 }; p $SAFE'
 0
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/842#comment:3>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list