Bug 1316098 - Optimize out result object allocation for await/return in async function.

Tag #1287
This commit is contained in:
Gaming4JC 2019-12-13 20:59:32 -05:00 • committed by Roy Tam
commit c9f1fa2cda
10 changed files with 39 additions and 138 deletions

View file

@ -553,7 +553,7 @@ class FunctionBox : public ObjectBox, public SharedContext
}
bool needsIteratorResult() const {
return isStarGenerator() || isAsync();
return isStarGenerator();
}
bool isAsync() const { return asyncKind() == AsyncFunction; }