Bug 1343481 - Part 2: Stop using StarGegerator for async function.

Tag #1287
This commit is contained in:
Gaming4JC 2019-12-01 18:44:06 -05:00 • committed by Roy Tam
commit 45337018ef
10 changed files with 58 additions and 55 deletions

View file

@ -552,6 +552,10 @@ class FunctionBox : public ObjectBox, public SharedContext
return isStarGenerator() || isLegacyGenerator() || isAsync();
}
bool needsIteratorResult() const {
return isStarGenerator() || isAsync();
}
bool isAsync() const { return asyncKind() == AsyncFunction; }
bool isArrow() const { return function()->isArrow(); }