Index: src/compiler/typer.cc |
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc |
index 3150222b79f8ce0322ffbcf26fff40e185c04631..85e5a170600791973321324decabda1729aceaab 100644 |
--- a/src/compiler/typer.cc |
+++ b/src/compiler/typer.cc |
@@ -1116,7 +1116,15 @@ Type* Typer::Visitor::TypeJSCreate(Node* node) { return Type::Object(); } |
Type* Typer::Visitor::TypeJSCreateArguments(Node* node) { |
- return Type::OtherObject(); |
+ switch (CreateArgumentsTypeOf(node->op())) { |
+ case CreateArgumentsType::kRestParameter: |
+ return Type::Array(); |
+ case CreateArgumentsType::kMappedArguments: |
+ case CreateArgumentsType::kUnmappedArguments: |
+ return Type::OtherObject(); |
+ } |
+ UNREACHABLE(); |
+ return nullptr; |
} |
Type* Typer::Visitor::TypeJSCreateArray(Node* node) { return Type::Array(); } |