The spec if operator introduces a new branch depth for the then and else arms, but I don't see this specified anywhere in the AstSemantics doc. This is also inconsistent with how the binary format is currently implemented (in at least v8, probably other engines too).
I've ended up hacking around this in sexpr-wasm, but it would be nice to introduce some consistency here. AIUI, this was added in preparation for the switch to postorder; perhaps it should be in a binary_0xb branch?
The spec
ifoperator introduces a new branch depth for thethenandelsearms, but I don't see this specified anywhere in the AstSemantics doc. This is also inconsistent with how the binary format is currently implemented (in at least v8, probably other engines too).I've ended up hacking around this in sexpr-wasm, but it would be nice to introduce some consistency here. AIUI, this was added in preparation for the switch to postorder; perhaps it should be in a
binary_0xbbranch?