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 | f07d5707c77e73031b6921faac165ca7f8d577c6 (patch) | |
tree | 0ecbf325bbefb73bee1dce56dac494620b461fb2 /js/src/vm/Debugger.cpp | |
parent | 9163aaebb670bd87e6ef71beaf24999c926217eb (diff) | |
download | UXP-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/vm/Debugger.cpp')
-rw-r--r-- | js/src/vm/Debugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/vm/Debugger.cpp b/js/src/vm/Debugger.cpp index b3efeb175..7c09c50b0 100644 --- a/js/src/vm/Debugger.cpp +++ b/js/src/vm/Debugger.cpp @@ -1569,7 +1569,7 @@ CheckResumptionValue(JSContext* cx, AbstractFramePtr frame, const Maybe<HandleVa JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr, JSMSG_DEBUG_BAD_AWAIT); return false; } - } else if (callee->isStarGenerator()) { + } else if (callee->isStarGenerator() || callee->isAsync()) { if (!CheckStarGeneratorResumptionValue(cx, vp)) { JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr, JSMSG_DEBUG_BAD_YIELD); return false; |