Skip to content

exports does not check that name is locally bound. (T7020) #4026

Closed

Description

@babel-bot

Issue originally made by Bradley Farias (bradley.farias)

Bug information

  • Babel version: 5.8.34
  • Node version: 4.2.3
  • npm version: 2.14.7

Input code

export {Object}

Description

As per https://tc39.github.io/ecma262/#sec-module-semantics , exporting should require a locally bound variable of that name otherwise it is a static error.

Activity

  1. babel-bot commented on Jan 21, 2016

    @babel-bot
    CollaboratorAuthor

    Comment originally made by @jmm

    Thanks for the report, we'll check it out. FYI, Babel v5 is unmaintained, and spec references for ES2015 should be made to the current spec, not a draft.

  2. babel-bot commented on Feb 5, 2016

    @babel-bot
    CollaboratorAuthor

    Comment originally made by @jmm

    Collaborators: FYI I did a quick check and this still seems to be the case in v6 -- that's why this is still open.

  3. added
    PR: Spec Compliance 👓
    on Mar 16, 2017
  4. added
    outdated
    on May 4, 2018
  5. locked as resolved and limited conversation to collaborators on May 4, 2018
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

    PR: Spec Compliance 👓outdated

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions