Skip to content

Type Literal instead of BigIntLiteral #111

@Tc14Hd

Description

@Tc14Hd

The code

tree = ast.parse("1000000000000000n");
console.log(tree.body[0].expression);

outputs a node of type "Literal":

{
  type: 'Literal',
  value: 1000000000000000n,
  bigint: '1000000000000000'
}

But the README implies that the type should rather be "BigIntLiteral". Is this a bug?

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