Skip to content

Commit e19c766

Browse files
committed
Refactor
1 parent c22b257 commit e19c766

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiler/compat-block-utility.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ class CompatibilityLayerBlockUtility extends BlockUtility {
2929
throw new Error('getParam is not supported by this BlockUtility');
3030
}
3131

32-
init (thread, fakeBlockId) {
32+
init (thread, fakeBlockId, stackFrame) {
3333
this.thread = thread;
3434
this.sequencer = thread.target.runtime.sequencer;
35+
this._stackFrame = stackFrame;
3536
thread.stack[0] = fakeBlockId;
3637
}
3738
}

src/compiler/jsexecute.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ const executeInCompatibilityLayer = function*(inputs, blockFunction, isWarp, use
138138
if (!stackFrame) stackFrame = {};
139139
140140
const executeBlock = () => {
141-
blockUtility._stackFrame = stackFrame;
142-
blockUtility.init(thread, blockId);
141+
blockUtility.init(thread, blockId, stackFrame);
143142
return blockFunction(inputs, blockUtility);
144143
};
145144

0 commit comments

Comments
 (0)