Adding a bit more clarification to comment.

This commit is contained in:
Karishma Chadha 2018-04-10 16:53:07 -04:00
parent 18c1a20eaa
commit 0df937f5c0

View file

@ -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);