#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 martinlagardette@…): The problem is not that the exception cannot be catched. It has been catched, but it raises again with the `#p` operation. The real problem is that the $SAFE value is not set only for the block it's defined in: {{{ #!ruby # test_safe.rb p $SAFE -> { $SAFE = 3 }.call p $SAFE }}} {{{ $> ruby19 test_safe.rb 0 0 $> macruby test_safe.rb 0 3 $> }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/842#comment:1> MacRuby <http://macruby.org/>