Index: src/regexp/regexp-parser.cc |
diff --git a/src/regexp/regexp-parser.cc b/src/regexp/regexp-parser.cc |
index ebaccc5588c335ca17e1b9df0003146a42f2ecdf..3621f7d96e4fbf4634b7a214d7beb5defa019eae 100644 |
--- a/src/regexp/regexp-parser.cc |
+++ b/src/regexp/regexp-parser.cc |
@@ -770,15 +770,6 @@ |
DCHECK(0 < index && index <= captures_started_); |
DCHECK_NOT_NULL(name); |
- // Disallow captures named '__proto__'. |
- static const char16_t proto_string[] = u"__proto__"; |
- if (name->size() == arraysize(proto_string) - 1) { |
- if (std::equal(name->begin(), name->end(), &proto_string[0])) { |
- ReportError(CStrVector("Illegal capture group name")); |
- return false; |
- } |
- } |
- |
if (named_captures_ == nullptr) { |
named_captures_ = new (zone()) ZoneList<RegExpCapture*>(1, zone()); |
} else { |