Skip to content

Commit 90be9f6

Browse files
authored
Maybe
1 parent d32896b commit 90be9f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/irgen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,7 @@ class ScriptTreeGenerator {
17371737
return {
17381738
kind: 'procedures.return',
17391739
return: this.descendInputOfBlock(block, 'return'),
1740-
isDefineClicked: topBlock ? topBlock.opcode === "procedures_return" || topBlock.opcode.startsWith("procedures_definition") : false,
1740+
isDefineClicked: topBlock && this.thread.topBlock === this.script.topBlockId && (topBlock.opcode === "procedures_return" || topBlock.opcode.startsWith("procedures_definition")),
17411741
compilerInfo: {
17421742
jwArrayUnmodified: true
17431743
}

0 commit comments

Comments
 (0)