Index: src/typing.cc |
diff --git a/src/typing.cc b/src/typing.cc |
index 3f63237596ae116a6882fab950dbc6a214a73cbc..0bfe3af997d023779078bdb5a6d4451af9a80d82 100644 |
--- a/src/typing.cc |
+++ b/src/typing.cc |
@@ -394,7 +394,8 @@ void AstTyper::VisitLiteral(Literal* expr) { |
void AstTyper::VisitRegExpLiteral(RegExpLiteral* expr) { |
- NarrowType(expr, Bounds(Type::RegExp(zone()))); |
+ // TODO(rossberg): Reintroduce RegExp type. |
+ NarrowType(expr, Bounds(Type::Object(zone()))); |
} |