Chromium Code Reviews

Unified Diff: src/parsing/preparser.h

Issue 2620943002: [ESnext] Implement Object Rest (Closed)
Patch Set: fix test + rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index 77fe061f42a40798847e39f6f17fa80a49d5e9b7..db2edf7935ec1bd788b3c45aacd1a616b7071447 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -594,8 +594,8 @@ class PreParserFactory {
}
PreParserExpression NewObjectLiteral(PreParserExpressionList properties,
int literal_index,
- int boilerplate_properties,
- int pos) {
+ int boilerplate_properties, int pos,
+ bool has_rest_property) {
return PreParserExpression::ObjectLiteral(properties.variables_);
}
PreParserExpression NewVariableProxy(void* variable) {

Powered by Google App Engine