Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: src/scopeinfo.cc

Issue 1189743003: [destructuring] Implement parameter pattern matching. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/scopeinfo.cc
diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc
index 8bc0a9a503440441b9ac99ffe2ae60d452c3a5cb..d5a1cc948ed2f54460430f00a8c6f858d97d4e03 100644
--- a/src/scopeinfo.cc
+++ b/src/scopeinfo.cc
@@ -101,7 +101,7 @@ Handle<ScopeInfo> ScopeInfo::Create(Isolate* isolate, Zone* zone,
// Add parameters.
DCHECK(index == scope_info->ParameterEntriesIndex());
for (int i = 0; i < parameter_count; ++i) {
- scope_info->set(index++, *scope->parameter(i)->name());
+ scope_info->set(index++, *scope->parameter_var(i)->name());
}
// Add stack locals' names. We are assuming that the stack locals'

Powered by Google App Engine
This is Rietveld 408576698