summaryrefslogtreecommitdiffstats
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
commit4ee42e38e0a490eb4880b4a260e3cbe07dd486d1 (patch)
treef923d15f26214678fe0bac821e9658503ce98157 /js/src/frontend/BytecodeEmitter.h
parentc93787917dbf305aa622d2d288effff78fe81008 (diff)
downloadUXP-4ee42e38e0a490eb4880b4a260e3cbe07dd486d1.tar
UXP-4ee42e38e0a490eb4880b4a260e3cbe07dd486d1.tar.gz
UXP-4ee42e38e0a490eb4880b4a260e3cbe07dd486d1.tar.lz
UXP-4ee42e38e0a490eb4880b4a260e3cbe07dd486d1.tar.xz
UXP-4ee42e38e0a490eb4880b4a260e3cbe07dd486d1.zip
Bug 1338796 - Do not call iterator.return if iterator.throw is present in yield*
Issue #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 78eb3510c..2ab6c6fef 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,