diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-12-14 09:22:48 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-12-17 06:25:28 -0500 |
commit | 5bdfdb678d4063f77392d5029b9803c8cdc6f248 (patch) | |
tree | e9edbaddf0c3cd48fe05765d519e665c019f3e02 /js/src/frontend/BytecodeEmitter.h | |
parent | 580dfb2afbef15764b56714f3eb690a67f0af9c1 (diff) | |
download | UXP-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.h | 3 |
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); |