Index: src/regexp.js |
diff --git a/src/regexp.js b/src/regexp.js |
index 0ab86f3338445e1394649f5e0597c2b1fb1cb8c2..f373ceb67e16bb98aeaf629d4d5161aab4279591 100644 |
--- a/src/regexp.js |
+++ b/src/regexp.js |
@@ -174,13 +174,6 @@ function RegExpExec(string) { |
['RegExp.prototype.exec', this]); |
} |
- if (%_ArgumentsLength() === 0) { |
- var regExpInput = LAST_INPUT(lastMatchInfo); |
- if (IS_UNDEFINED(regExpInput)) { |
- throw MakeError('no_input_to_regexp', [this]); |
- } |
- string = regExpInput; |
- } |
string = TO_STRING_INLINE(string); |
var lastIndex = this.lastIndex; |
@@ -229,14 +222,6 @@ function RegExpTest(string) { |
throw MakeTypeError('incompatible_method_receiver', |
['RegExp.prototype.test', this]); |
} |
- if (%_ArgumentsLength() == 0) { |
- var regExpInput = LAST_INPUT(lastMatchInfo); |
- if (IS_UNDEFINED(regExpInput)) { |
- throw MakeError('no_input_to_regexp', [this]); |
- } |
- string = regExpInput; |
- } |
- |
string = TO_STRING_INLINE(string); |
var lastIndex = this.lastIndex; |