mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Adding a bit more clarification to comment.
This commit is contained in:
parent
18c1a20eaa
commit
0df937f5c0
1 changed files with 2 additions and 1 deletions
|
@ -171,7 +171,8 @@ const serializeBlock = function (block) {
|
|||
const obj = Object.create(null);
|
||||
obj.opcode = block.opcode;
|
||||
// NOTE: this is extremely important to serialize even if null;
|
||||
// not serializing `next: null` results in strange behavior
|
||||
// not serializing `next: null` results in strange behavior with block
|
||||
// execution
|
||||
obj.next = block.next;
|
||||
obj.parent = block.parent;
|
||||
obj.inputs = serializeInputs(block.inputs);
|
||||
|
|
Loading…
Reference in a new issue