Chromium Code Reviews| Index: src/ast.h |
| diff --git a/src/ast.h b/src/ast.h |
| index aecee37b602f922f8629e21dd5cbeb2d9837b608..15be52fb6920a07fd0a2cd7d05e4ea9211d283c4 100644 |
| --- a/src/ast.h |
| +++ b/src/ast.h |
| @@ -3368,6 +3368,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) |