In order to have one call of SerializeEndNode for every SerializeStartNode call. This make it simpler to reason about the program and potentially prevents future bugs.
In order to have one call of SerializeNodeEnd for every SerializeNodeStart
call. In the current state of the code, the absence of these calls doesn't
cause bugs, but this can change anytime SerializeNodeEnd is changed. Moreover,
it makes it simpler to reason about the code.
Requesting checkin. A corresponding try run (https://treeherder.mozilla.org/#/jobs?repo=try&revision=6bb85430a44a912038cecc47e2f76c74a0a5f2ca&selectedJob=244518297) has only unrelated failures.
Pushed by email@example.com:
add missing calls to SerializeNodeEnd r=hsivonen