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

Unified Diff: src/parser.h

Issue 1139773005: [destructuring] More tests for object literal pattern (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comments addressed, landing Created 5 years, 7 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/parser.h
diff --git a/src/parser.h b/src/parser.h
index 4b4f12af292ea7e8f1161e4babfba9187d3e69ce..19ddb69f36fa4f1c8f2017e27854a48ca5994208 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -1013,6 +1013,9 @@ class Parser : public ParserBase<ParserTraits> {
}
bool inside_with() const { return descriptor_->parser->inside_with(); }
Zone* zone() const { return descriptor_->parser->zone(); }
+ Scope* TemporaryDeclarationScope() const {
+ return descriptor_->parser->scope_->DeclarationScope();
+ }
Expression* pattern_;
int initializer_position_;
@@ -1101,6 +1104,7 @@ class Parser : public ParserBase<ParserTraits> {
IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok);
void AddAssertIsConstruct(ZoneList<Statement*>* body, int pos);
+ Statement* BuildAssertIsCoercible(Variable* var);
// Factory methods.
FunctionLiteral* DefaultConstructor(bool call_super, Scope* scope, int pos,
« no previous file with comments | « src/messages.h ('k') | src/parser.cc » ('j') | test/message/destructuring-modify-const.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698