Skip to content

Spec bug: What happens with a g,C mapping? #181

Open
@nicolo-ribaudo

Description

@nicolo-ribaudo

Even including #179, I think our spec is just broken in this case. In https://tc39.es/ecma426/#sec-DecodeBase64VLQ we consume g, then the loop continues and it calls ConsumeBase64ValueAt, which tries to decode , as a base64 value.

#180 fixes it by making it an error explicitly, but I'm opening this issue to make sure it's tested.

What do realm implementations do? Do they error, or do they recover by just assuming that the user meant A instead of g (which is the same bit pattern but without the continuation bit)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions