Adding a bit more clarification to comment.
This commit is contained in:
1 parent
18c1a20eaa
commit
0df937f5c0
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user