Visitar URL original
Can't parse es2017 and later · Issue #12 · unassert-js/unassert · GitHub
Skip to content

Can't parse es2017 and later #12

Description

@falsandtru

Acorn targets es2016 by default, not es2017 or later. You have to specify the version.

https://github.com/acornjs/acorn#main-parser

Activity

  1. changed the title [-]Can't parse es2017[/-] [+]Can't parse es2017 and later[/+] on Apr 29, 2018
  2. twada commented on May 9, 2018

    @twada
    Member

    @falsandtru Sorry for my late response. I'll take a look.

    To give you a quick fix, could you tell me what transpiler-side product are you using?

    • unassertify
    • babel-plugin-unassert
    • webpack-unassert-loader
    • gulp-unassert
    • unassert-cli

    I'll fix it first.

  3. falsandtru commented on May 9, 2018

    @falsandtru
    Author

    I'm using gulp-unassert.

  4. twada commented on May 10, 2018

    @twada
    Member

    While tackling with this issue, I've found that escodegen cannot generate for-await-of statement so I made a PR to fix. Please wait for a moment.

    refs: Support async iteration statement for-await-of introduced in ES2018

  5. falsandtru commented on Jun 17, 2018

    @falsandtru
    Author

    Now gulp-unassert can work with es2018, thanks!

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