Skip to content

Commit 8b325bc

Browse files
Update irgen.js
1 parent 7b10180 commit 8b325bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/irgen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ class ScriptTreeGenerator {
663663
const blockInfo = this.getBlockInfo(block.opcode);
664664
if (blockInfo) {
665665
const type = blockInfo.info.blockType;
666-
if (type === BlockType.REPORTER || type === BlockType.BOOLEAN) {
666+
if (type === BlockType.REPORTER || type === BlockType.BOOLEAN || type === BlockType.INLINE) {
667667
return this.descendCompatLayer(block);
668668
}
669669
}
@@ -1415,7 +1415,7 @@ class ScriptTreeGenerator {
14151415
const blockInfo = this.getBlockInfo(block.opcode);
14161416
const blockType = (blockInfo && blockInfo.info && blockInfo.info.blockType) || BlockType.COMMAND;
14171417
const substacks = {};
1418-
if (blockType === BlockType.CONDITIONAL || blockType === BlockType.LOOP) {
1418+
if (blockType === BlockType.CONDITIONAL || blockType === BlockType.LOOP || blockType === BlockType.INLINE) {
14191419
for (const inputName in block.inputs) {
14201420
if (!inputName.startsWith('SUBSTACK')) continue;
14211421
const branchNum = inputName === 'SUBSTACK' ? 1 : +inputName.substring('SUBSTACK'.length);

0 commit comments

Comments
 (0)