Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 9b8223c7558e5b9217ece0ab67c331e6d717206b..cf417b8c64c905c1f50c52329aa2de915446f327 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -4990,7 +4990,7 @@ bool RegExpParser::ParseIntervalQuantifier(int* min_out, int* max_out) { |
uc32 RegExpParser::ParseOctalLiteral() { |
- ASSERT('0' <= current() && current() <= '7'); |
+ ASSERT(('0' <= current() && current() <= '7') || current() == kEndMarker); |
// For compatibility with some other browsers (not all), we parse |
// up to three octal digits with a value below 256. |
uc32 value = current() - '0'; |