Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index e3154f935fe455d86287b1412fe025ef8e4f6c0d..22b3a5d9f8d119824d70369f1a7320545e7d2fed 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -1007,7 +1007,7 @@ class Parser : public ParserBase<ParserTraits> { |
current_value_ = old_value; |
} |
- Variable* CreateTempVar(Expression* value); |
+ Variable* CreateTempVar(Expression* value = nullptr); |
AstNodeFactory* factory() const { return descriptor_->parser->factory(); } |
AstValueFactory* ast_value_factory() const { |
@@ -1055,6 +1055,12 @@ class Parser : public ParserBase<ParserTraits> { |
// Support for hamony block scoped bindings. |
Block* ParseScopedBlock(ZoneList<const AstRawString*>* labels, bool* ok); |
+ // !%_IsSpecObject(result = iterator.next()) && |
+ // %ThrowIteratorResultNotAnObject(result) |
+ Expression* BuildIteratorNextResult(Expression* iterator, Variable* result, |
+ int pos); |
+ |
+ |
// Initialize the components of a for-in / for-of statement. |
void InitializeForEachStatement(ForEachStatement* stmt, |
Expression* each, |