Index: src/parsing/scanner.cc |
diff --git a/src/parsing/scanner.cc b/src/parsing/scanner.cc |
index 842f2b560bdf085d4928409ba427adaab2ea9a8a..81839990c6cc8de2ff5f327b5300477ebb280d66 100644 |
--- a/src/parsing/scanner.cc |
+++ b/src/parsing/scanner.cc |
@@ -1717,6 +1717,13 @@ Maybe<RegExp::Flags> Scanner::ScanRegExpFlags() { |
case 'm': |
flag = RegExp::kMultiline; |
break; |
+ case 's': |
+ if (FLAG_harmony_regexp_dotall) { |
+ flag = RegExp::kDotAll; |
+ } else { |
+ return Nothing<RegExp::Flags>(); |
+ } |
+ break; |
case 'u': |
flag = RegExp::kUnicode; |
break; |