Index: src/parsing/parser-base.h |
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
index b54273f1ad84ec6f7cfebc4dc08e16b9b5ff503a..16ea64d9a5b6f5110d7eb48a1d1282c688150338 100644 |
--- a/src/parsing/parser-base.h |
+++ b/src/parsing/parser-base.h |
@@ -2146,10 +2146,7 @@ ParserBase<Traits>::ParseYieldExpression(ExpressionClassifier* classifier, |
} |
} |
if (kind == Yield::kDelegating) { |
- // var iterator = subject[Symbol.iterator](); |
- // Hackily disambiguate o from o.next and o [Symbol.iterator](). |
- // TODO(verwaest): Come up with a better solution. |
- expression = this->GetIterator(expression, factory(), pos + 1); |
+ return Traits::RewriteYieldStar(generator_object, expression, pos); |
} |
// Hackily disambiguate o from o.next and o [Symbol.iterator](). |
// TODO(verwaest): Come up with a better solution. |