Commit 8838fdea authored by sandholm@chromium.org's avatar sandholm@chromium.org

Another minor regexp cleanup.

Review URL: http://codereview.chromium.org/4577001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5774 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5e9c1704
......@@ -162,9 +162,6 @@ function StringMatch(regexp) {
var subject = TO_STRING_INLINE(this);
if (IS_REGEXP(regexp)) {
if (!regexp.global) return regexp.exec(subject);
var saveAnswer = false;
%_Log('regexp', 'regexp-match,%0S,%1r', [subject, regexp]);
// lastMatchInfo is defined in regexp.js.
return %StringMatch(subject, regexp, lastMatchInfo);
......@@ -562,8 +559,6 @@ function StringSplit(separator, limit) {
return result;
}
var saveAnswer = false;
%_Log('regexp', 'regexp-split,%0S,%1r', [subject, separator]);
if (length === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment