Skip to content

Bug: doesn't support class functions named "static" #13

Closed
@kumavis

Description

test('supports class function named static', function (t) {
  t.doesNotThrow(function () {
    acorn.parse('class X { static () {} }', { sourceType: 'script' })
  })
  t.end()
})

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