Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index f8f20e530aa18d2f7e4c8c1d892470d33dc662c6..bfbe4149174d1f077357497e8868acadead63c5c 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -2935,6 +2935,7 @@ ParserBase<Traits>::ParseYieldExpression(ExpressionClassifier* classifier, |
// YieldExpression :: |
// 'yield' ([no line terminator] '*'? AssignmentExpression)? |
int pos = peek_position(); |
+ BindingPatternUnexpectedToken(classifier); |
Expect(Token::YIELD, CHECK_OK); |
ExpressionT generator_object = |
factory()->NewVariableProxy(function_state_->generator_object_variable()); |