Skip to content

Commit 168dbad

Browse files
committed
dev: organize share sequence
1 parent 69e9df1 commit 168dbad

File tree

5 files changed

+546
-430
lines changed

5 files changed

+546
-430
lines changed

src/backend/src/codex/Sequence.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ class Sequence {
141141
this.thisArg, this,
142142
);
143143

144+
if ( this.last_return_ instanceof Sequence.SequenceState ) {
145+
this.scope_ = this.last_return_.scope_;
146+
}
147+
144148
if ( this.sequence_.options_.after_each ) {
145149
await this.sequence_.options_.after_each(this, step);
146150
}

0 commit comments

Comments
 (0)