Revision: 3665 http://trac.macosforge.org/projects/ruby/changeset/3665 Author: lsansonetti@apple.com Date: 2010-03-02 12:38:40 -0800 (Tue, 02 Mar 2010) Log Message: ----------- change an assert by an exception, this way we can progress in the specs Modified Paths: -------------- MacRuby/branches/icu/re.cpp Modified: MacRuby/branches/icu/re.cpp =================================================================== --- MacRuby/branches/icu/re.cpp 2010-03-02 20:26:41 UTC (rev 3664) +++ MacRuby/branches/icu/re.cpp 2010-03-02 20:38:40 UTC (rev 3665) @@ -408,7 +408,9 @@ int rb_reg_search(VALUE re, VALUE str, int pos, bool reverse) { - assert(!reverse); // TODO + if (reverse) { + rb_raise(rb_eRuntimeError, "reverse searching is not implemented yet"); + } const long len = rb_str_chars_len(str); if (pos > len || pos < 0) {
participants (1)
-
source_changes@macosforge.org