Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index bbd9452c84729753e971d9563db7b976369a2060..ebf0ed4933faadafc4c6d430ad17e80c35c1b9e3 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -698,9 +698,9 @@ void CodeGenerator::TranslateStateValueDescriptor( |
TranslateStateValueDescriptor(field.desc, field.nested, translation, |
iter); |
} |
- } else if (desc->IsArguments()) { |
+ } else if (desc->IsArgumentsElements()) { |
if (translation != nullptr) { |
- translation->BeginArgumentsObject(0); |
+ translation->ArgumentsElements(desc->is_rest()); |
} |
} else if (desc->IsDuplicate()) { |
if (translation != nullptr) { |