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

Unified Diff: src/objects.cc

Issue 2780173002: [regexp] Add support for dotAll flag (Closed)
Patch Set: Address comments Created 3 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/objects.h ('k') | src/parsing/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 0d0e3ed0ae90d00eca5ba3a17b0c86df985367f4..831b4dd46fc5871b36c9c9d1eb2d21b34da09228 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -16140,6 +16140,13 @@ JSRegExp::Flags RegExpFlagsFromString(Handle<String> flags, bool* success) {
case 'm':
flag = JSRegExp::kMultiline;
break;
+ case 's':
+ if (FLAG_harmony_regexp_dotall) {
+ flag = JSRegExp::kDotAll;
+ } else {
+ return JSRegExp::Flags(0);
+ }
+ break;
case 'u':
flag = JSRegExp::kUnicode;
break;
« no previous file with comments | « src/objects.h ('k') | src/parsing/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698