Skip to content

parseInt(08) should work in sloppy mode? #4757

@kangax

Description

@kangax

Input Code

parseInt(08);

Babel Configuration (.babelrc, package.json, cli command)

{
  "sourceType": "script" // so that it's not strict
}

Expected Behavior

Should evaluate to 8.

Current Behavior

Throws SyntaxError.

Your Environment

software version
Babel 6.17

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: upstreamoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions