Skip to content

Commit 71d4337

Browse files
authored
blocks.js -- fix a memory leak here
1 parent 3de4244 commit 71d4337

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/engine/blocks.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,11 @@ class Blocks {
455455
break;
456456
case 'delete':
457457
// Don't accept delete events for missing blocks,
458-
// or shadow blocks being obscured.
459-
if (!this._blocks.hasOwnProperty(e.blockId) ||
460-
this._blocks[e.blockId].shadow) {
458+
// or most shadow blocks being obscured.
459+
if (
460+
!this._blocks.hasOwnProperty(e.blockId) ||
461+
(this._blocks[e.blockId].shadow && this._blocks[e.blockId].opcode.startsWith("argument_reporter_"))
462+
) {
461463
return;
462464
}
463465
// If this block is the initial block of a script, inform any runtime to forget about glows

0 commit comments

Comments
 (0)