Skip to content

XS: Numeric literals not parsed according to specification #59

Description

@tevador

According to the ECMAScript 6 specification, the exponent part of a DecimalLiteral consists of the ExponentIndicator (letter e or E) followed by a SignedInteger.

However, it seems that the XS interpreter doesn't require any number to follow the ExponentIndicator:

./xst -e "print(884e)"
NaN

This should result in a SyntaxError and not NaN, because the exponent part is incomplete.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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