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

Unified Diff: src/scanner.cc

Issue 1389313003: [parser] fix token end position for regexp literals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test Created 5 years, 2 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 | « no previous file | test/mjsunit/es6/arrow-functions.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scanner.cc
diff --git a/src/scanner.cc b/src/scanner.cc
index de799033b92206f2d9296fe78f81088e878cdc36..04712e9f32a8ea529cc3b02ff6210e4e0d2b6e91 100644
--- a/src/scanner.cc
+++ b/src/scanner.cc
@@ -1395,7 +1395,7 @@ bool Scanner::ScanRegExpFlags() {
}
literal.Complete();
- next_.location.end_pos = source_pos() - 1;
+ next_.location.end_pos = source_pos();
return true;
}
« no previous file with comments | « no previous file | test/mjsunit/es6/arrow-functions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698