Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@
import org.jruby.truffle.runtime.control.RaiseException;
import org.jruby.truffle.runtime.core.RubyBasicObject;
import org.jruby.truffle.runtime.core.RubyMatchData;
import org.jruby.truffle.runtime.core.RubyNilClass;
import org.jruby.truffle.runtime.core.RubyRegexp;
import org.jruby.truffle.runtime.core.RubyString;
import org.jruby.truffle.runtime.core.RubySymbol;
@@ -239,6 +240,11 @@ public Object match(RubyRegexp regexp, RubyString string) {
return regexp.matchCommon(string, false, false);
}

@Specialization
public Object match(RubyRegexp regexp, RubyNilClass nil) {
return nil();
}

}

@RubiniusOnly

0 comments on commit 985336d

Please sign in to comment.