summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/BytecodeEmitter.h
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-25 19:06:08 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-25 19:06:08 +0200
commit70c8cf8db71880c1ab1f8fee4787a19316960dac (patch)
tree618fc907d501d7154e9a86493d7cf86bf96ca682 /js/src/frontend/BytecodeEmitter.h
parentaafdd314442c903815f6fdf6072b001c25ae85c5 (diff)
downloadUXP-70c8cf8db71880c1ab1f8fee4787a19316960dac.tar
UXP-70c8cf8db71880c1ab1f8fee4787a19316960dac.tar.gz
UXP-70c8cf8db71880c1ab1f8fee4787a19316960dac.tar.lz
UXP-70c8cf8db71880c1ab1f8fee4787a19316960dac.tar.xz
UXP-70c8cf8db71880c1ab1f8fee4787a19316960dac.zip
Bug 1360839 - Call IteratorClose due to abrupt completion from yield
Issue #74
Diffstat (limited to 'js/src/frontend/BytecodeEmitter.h')
-rw-r--r--js/src/frontend/BytecodeEmitter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/src/frontend/BytecodeEmitter.h b/js/src/frontend/BytecodeEmitter.h
index 7ac9e540b..04307c8c1 100644
--- a/js/src/frontend/BytecodeEmitter.h
+++ b/js/src/frontend/BytecodeEmitter.h
@@ -100,7 +100,9 @@ struct CGScopeNoteList {
struct CGYieldOffsetList {
Vector<uint32_t> list;
- explicit CGYieldOffsetList(ExclusiveContext* cx) : list(cx) {}
+ uint32_t numYields;
+ uint32_t numAwaits;
+ explicit CGYieldOffsetList(ExclusiveContext* cx) : list(cx), numYields(0), numAwaits(0) {}
MOZ_MUST_USE bool append(uint32_t offset) { return list.append(offset); }
size_t length() const { return list.length(); }