Skip to content


Browse files Browse the repository at this point in the history
[Truffle] Adding nil specialization for Regexp#match.
  • Loading branch information
bjfish committed Apr 3, 2015
1 parent c2bafc2 commit 985336d
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -239,6 +240,11 @@ public Object match(RubyRegexp regexp, RubyString string) {
return regexp.matchCommon(string, false, false);

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


Expand Down

0 comments on commit 985336d

Please sign in to comment.