mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Always serialize parent and next on a block even if they're null.
This commit is contained in:
parent
4f6ece9fa8
commit
09c8110923
1 changed files with 2 additions and 6 deletions
|
@ -29,12 +29,8 @@ const serializeBlock = function (block) {
|
|||
const obj = Object.create(null);
|
||||
obj.id = block.id;
|
||||
obj.opcode = block.opcode;
|
||||
if (block.next) {
|
||||
obj.next = block.next;
|
||||
}
|
||||
if (block.parent) {
|
||||
obj.parent = block.parent;
|
||||
}
|
||||
obj.next = block.next;
|
||||
obj.parent = block.parent;
|
||||
obj.inputs = block.inputs;
|
||||
obj.fields = block.fields;
|
||||
obj.topLevel = block.topLevel;
|
||||
|
|
Loading…
Reference in a new issue