summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/BytecodeEmitter.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-12-14 09:22:48 -0500
committerGaming4JC <g4jc@hyperbola.info>2019-12-17 06:25:28 -0500
commit5bdfdb678d4063f77392d5029b9803c8cdc6f248 (patch)
treee9edbaddf0c3cd48fe05765d519e665c019f3e02 /js/src/frontend/BytecodeEmitter.h
parent580dfb2afbef15764b56714f3eb690a67f0af9c1 (diff)
downloadUXP-5bdfdb678d4063f77392d5029b9803c8cdc6f248.tar
UXP-5bdfdb678d4063f77392d5029b9803c8cdc6f248.tar.gz
UXP-5bdfdb678d4063f77392d5029b9803c8cdc6f248.tar.lz
UXP-5bdfdb678d4063f77392d5029b9803c8cdc6f248.tar.xz
UXP-5bdfdb678d4063f77392d5029b9803c8cdc6f248.zip
Bug 1331092 - Part 9: Implement for-await-of.
Tag #1287
Diffstat (limited to 'js/src/frontend/BytecodeEmitter.h')
-rw-r--r--js/src/frontend/BytecodeEmitter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/frontend/BytecodeEmitter.h b/js/src/frontend/BytecodeEmitter.h
index 5eaf5ce14..47bc87d76 100644
--- a/js/src/frontend/BytecodeEmitter.h
+++ b/js/src/frontend/BytecodeEmitter.h
@@ -715,7 +715,8 @@ struct MOZ_STACK_CLASS BytecodeEmitter
// Pops iterator from the top of the stack. Pushes the result of |.next()|
// onto the stack.
- MOZ_MUST_USE bool emitIteratorNext(ParseNode* pn, bool allowSelfHosted = false);
+ MOZ_MUST_USE bool emitIteratorNext(ParseNode* pn, IteratorKind kind = IteratorKind::Sync,
+ bool allowSelfHosted = false);
MOZ_MUST_USE bool emitIteratorClose(IteratorKind iterKind = IteratorKind::Sync,
CompletionKind completionKind = CompletionKind::Normal,
bool allowSelfHosted = false);