Skip to content

checkFeatures does not catch unsupported features when using comma separatorΒ #388

@jlowcs

Description

@jlowcs

When running pnpm es-check es2022 --checkFeatures.

This gets flagged as Unsupported features detected: ArrayToReversed

42;[].toReversed()

But this does not:

42,[].toReversed()

We got really confused when we enabled sourcemaps in the Sentry Webpack plugin as it was transforming a comma into a semicolon. All of a sudden, errors started appearing when running es-check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions