Skip to content
This repository was archived by the owner on May 19, 2018. It is now read-only.
/ babylon Public archive
This repository was archived by the owner on May 19, 2018. It is now read-only.

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

@babel-bot

Description

@babel-bot

Original issue submitted by @kangax in babel/babel#4757

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions