Commit f59c0473 authored by marja's avatar marja Committed by Commit bot

Scope analysis: DCHECK that we allocate rest_parameter_ only once.

BUG=v8:5209

Review-Url: https://codereview.chromium.org/2254433002
Cr-Commit-Position: refs/heads/master@{#38673}
parent 1c5019e6
......@@ -1678,9 +1678,7 @@ void DeclarationScope::AllocateLocals() {
AllocateNonParameterLocal(function_);
}
if (rest_parameter_ != nullptr) {
AllocateNonParameterLocal(rest_parameter_);
}
DCHECK(rest_parameter_ == nullptr || !rest_parameter_->IsUnallocated());
if (new_target_ != nullptr && !MustAllocate(new_target_)) {
new_target_ = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment