Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1403)

Unified Diff: src/regexp.js

Issue 1559006: Remove trailing regexp from .js files. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mirror-debugger.js ('k') | src/runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/regexp.js
diff --git a/src/regexp.js b/src/regexp.js
index cc9723c8167bb0a3849bd84e4afed106e22f7169..9adf978e1233da6b996dc7798d388f8d80a61595 100644
--- a/src/regexp.js
+++ b/src/regexp.js
@@ -333,7 +333,7 @@ function RegExpGetLastMatch() {
function RegExpGetLastParen() {
if (lastMatchInfoOverride) {
var override = lastMatchInfoOverride;
- if (override.length <= 3) return '';
+ if (override.length <= 3) return '';
return override[override.length - 3];
}
var length = NUMBER_OF_CAPTURES(lastMatchInfo);
@@ -416,8 +416,8 @@ var lastMatchInfo = [
// Override last match info with an array of actual substrings.
// Used internally by replace regexp with function.
-// The array has the format of an "apply" argument for a replacement
-// function.
+// The array has the format of an "apply" argument for a replacement
+// function.
var lastMatchInfoOverride = null;
// -------------------------------------------------------------------
@@ -439,7 +439,7 @@ function SetupRegExp() {
%FunctionSetLength($RegExp.prototype.compile, 1);
// The properties input, $input, and $_ are aliases for each other. When this
- // value is set the value it is set to is coerced to a string.
+ // value is set the value it is set to is coerced to a string.
// Getter and setter for the input.
function RegExpGetInput() {
var regExpInput = LAST_INPUT(lastMatchInfo);
« no previous file with comments | « src/mirror-debugger.js ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698