diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-12-01 18:44:06 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-12-17 06:25:23 -0500 |
commit | 4d12f7f7d83196f82e53f0a3ab9aeecf542b1631 (patch) | |
tree | 0ecbf325bbefb73bee1dce56dac494620b461fb2 /js/src/vm/GeneratorObject.cpp | |
parent | f439384d738e6197bfcc7556ecbd9be7e58de3f3 (diff) | |
download | uxp-4d12f7f7d83196f82e53f0a3ab9aeecf542b1631.tar.gz |
Bug 1343481 - Part 2: Stop using StarGegerator for async function.
Tag mcp-graveyard/UXP#1287
Diffstat (limited to 'js/src/vm/GeneratorObject.cpp')
-rw-r--r-- | js/src/vm/GeneratorObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/vm/GeneratorObject.cpp b/js/src/vm/GeneratorObject.cpp index 448bc543d1..c0dff8faae 100644 --- a/js/src/vm/GeneratorObject.cpp +++ b/js/src/vm/GeneratorObject.cpp @@ -25,7 +25,7 @@ GeneratorObject::create(JSContext* cx, AbstractFramePtr frame) Rooted<GlobalObject*> global(cx, cx->global()); RootedNativeObject obj(cx); - if (frame.script()->isStarGenerator()) { + if (frame.script()->isStarGenerator() || frame.script()->isAsync()) { RootedValue pval(cx); RootedObject fun(cx, frame.callee()); // FIXME: This would be faster if we could avoid doing a lookup to get |