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

Unified Diff: src/scopes.h

Issue 1053773006: [es6] implement default/optional parameters (WIP / comments) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/scopes.h
diff --git a/src/scopes.h b/src/scopes.h
index 7b372d9643fe4c1c07892139c6ecf1937ed1257e..5ed8af1d082c4c0a07497b53f06db51cd5b3d789 100644
--- a/src/scopes.h
+++ b/src/scopes.h
@@ -125,7 +125,7 @@ class Scope: public ZoneObject {
// parameters the rightmost one 'wins'. However, the implementation
// expects all parameters to be declared and from left to right.
Variable* DeclareParameter(const AstRawString* name, VariableMode mode,
- bool is_rest = false);
+ ParameterKind kind = ParameterKind::Normal);
// Declare a local variable in this scope. If the variable has been
// declared before, the previously declared variable is returned.

Powered by Google App Engine
This is Rietveld 408576698