summaryrefslogtreecommitdiff
path: root/js/src/frontend/BytecodeEmitter.h
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-25 14:20:11 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-25 14:20:11 +0200
commit1854cc94e4db8b5fce430588a4bde6af83cd2a95 (patch)
treef923d15f26214678fe0bac821e9658503ce98157 /js/src/frontend/BytecodeEmitter.h
parente6ad1cd6a5205db674bd1104d9c99ef36ff3da8a (diff)
downloaduxp-1854cc94e4db8b5fce430588a4bde6af83cd2a95.tar.gz
Bug 1338796 - Do not call iterator.return if iterator.throw is present in yield*
Issue mcp-graveyard/UXP#74
Diffstat (limited to 'js/src/frontend/BytecodeEmitter.h')
-rw-r--r--js/src/frontend/BytecodeEmitter.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/src/frontend/BytecodeEmitter.h b/js/src/frontend/BytecodeEmitter.h
index 78eb3510cf..2ab6c6fefe 100644
--- a/js/src/frontend/BytecodeEmitter.h
+++ b/js/src/frontend/BytecodeEmitter.h
@@ -679,9 +679,7 @@ 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 emitIteratorClose(
- mozilla::Maybe<JumpTarget> yieldStarTryStart = mozilla::Nothing(),
- bool allowSelfHosted = false);
+ MOZ_MUST_USE bool emitIteratorClose(bool allowSelfHosted = false);
template <typename InnerEmitter>
MOZ_MUST_USE bool wrapWithDestructuringIteratorCloseTryNote(int32_t iterDepth,