Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index 23f9eef477a9a318769ad67256b650e23ca11372..702eabd9263703711e6853ce9fc597bdb07f71f2 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -3375,6 +3375,7 @@ class AstNodeFactory V8_FINAL BASE_EMBEDDED { |
Expression* expression, |
Yield::Kind yield_kind, |
int pos) { |
+ if (!expression) expression = NewUndefinedLiteral(pos); |
Yield* yield = new(zone_) Yield( |
zone_, generator_object, expression, yield_kind, pos); |
VISIT_AND_RETURN(Yield, yield) |