mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 20:17:33 +09:00
Bug 1316098 - Optimize out result object allocation for await/return in async function.
Tag #1287
This commit is contained in:
parent
c1bdfa62fc
commit
c9f1fa2cda
10 changed files with 39 additions and 138 deletions
|
|
@ -553,7 +553,7 @@ class FunctionBox : public ObjectBox, public SharedContext
|
|||
}
|
||||
|
||||
bool needsIteratorResult() const {
|
||||
return isStarGenerator() || isAsync();
|
||||
return isStarGenerator();
|
||||
}
|
||||
|
||||
bool isAsync() const { return asyncKind() == AsyncFunction; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue