Skip to content

Inconsistency with "if" operator #275

@binji

Description

@binji

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions