mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-02 12:37:31 +09:00
Bug 1343481 - Part 2: Stop using StarGegerator for async function.
Tag #1287
This commit is contained in:
parent
7eb5d46c11
commit
45337018ef
10 changed files with 58 additions and 55 deletions
|
|
@ -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(); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue