Index: test/cctest/test-ast-expression-visitor.cc |
diff --git a/test/cctest/test-ast-expression-visitor.cc b/test/cctest/test-ast-expression-visitor.cc |
index a40f87ccfeb5541fe4c6aa12a0e5b8876dfe3b08..bda1fba3b4e2398020652b940c78d68912a328e6 100644 |
--- a/test/cctest/test-ast-expression-visitor.cc |
+++ b/test/cctest/test-ast-expression-visitor.cc |
@@ -378,14 +378,17 @@ TEST(VisitYield) { |
CHECK_EXPR(CallRuntime, Bounds::Unbounded()); |
} |
} |
- // Explicit yield |
+ // Explicit yield (argument wrapped with CreateIterResultObject) |
CHECK_EXPR(Yield, Bounds::Unbounded()) { |
CHECK_VAR(.generator_object, Bounds::Unbounded()); |
- CHECK_EXPR(Literal, Bounds::Unbounded()); |
+ CHECK_EXPR(CallRuntime, Bounds::Unbounded()) { |
+ CHECK_EXPR(Literal, Bounds::Unbounded()); |
+ CHECK_EXPR(Literal, Bounds::Unbounded()); |
+ } |
} |
- // Implicit final yield |
- CHECK_EXPR(Yield, Bounds::Unbounded()) { |
- CHECK_VAR(.generator_object, Bounds::Unbounded()); |
+ // Argument to implicit final return |
+ CHECK_EXPR(CallRuntime, Bounds::Unbounded()) { // CreateIterResultObject |
+ CHECK_EXPR(Literal, Bounds::Unbounded()); |
CHECK_EXPR(Literal, Bounds::Unbounded()); |
} |
// Implicit finally clause |