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

Unified Diff: src/parser.cc

Issue 1278783002: [es6] Use strict arguments objects for destructured parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Doh Created 5 years, 4 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
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 6a0838e067091c62390bc5412631004cf15857f2..45202cb3a82b922c7d487061cfff03578cc3a3c9 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -3926,6 +3926,7 @@ void ParserTraits::ParseArrowFunctionFormalParameterList(
*duplicate_loc = classifier.duplicate_formal_parameter_error().location;
}
}
+ DCHECK_EQ(parameters->is_simple, parameters->scope->has_simple_parameters());
}
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698