summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/SharedContext.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-12-01 18:44:06 -0500
committerGaming4JC <g4jc@hyperbola.info>2019-12-17 06:25:23 -0500
commitf07d5707c77e73031b6921faac165ca7f8d577c6 (patch)
tree0ecbf325bbefb73bee1dce56dac494620b461fb2 /js/src/frontend/SharedContext.h
parent9163aaebb670bd87e6ef71beaf24999c926217eb (diff)
downloadUXP-f07d5707c77e73031b6921faac165ca7f8d577c6.tar
UXP-f07d5707c77e73031b6921faac165ca7f8d577c6.tar.gz
UXP-f07d5707c77e73031b6921faac165ca7f8d577c6.tar.lz
UXP-f07d5707c77e73031b6921faac165ca7f8d577c6.tar.xz
UXP-f07d5707c77e73031b6921faac165ca7f8d577c6.zip
Bug 1343481 - Part 2: Stop using StarGegerator for async function.
Tag #1287
Diffstat (limited to 'js/src/frontend/SharedContext.h')
-rw-r--r--js/src/frontend/SharedContext.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/frontend/SharedContext.h b/js/src/frontend/SharedContext.h
index 5766c135a..2d478308e 100644
--- a/js/src/frontend/SharedContext.h
+++ b/js/src/frontend/SharedContext.h
@@ -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(); }