Skip to content

Bug: "import <Module File Path>" doesn't execute the module body as expected. #2130

@stuartZhang

Description

@stuartZhang

I'd like to report a bug for the ES6 module importing.

According to the ES6 spec., the ES6-Module statement "import " merely executes the JavaScript routine inside the module body but doesn't really import any external variables or functions into the current context.

However, accompanying the latest Google Traceur, the statement "import " doesn't execute the module body as expected. On the contrary, I feel that the importing statement is directly ignored.

Only the statement "import ... from ..." does run the ES6 module body. Nevertheless, in my use case, I only intend to execute a piece of JavaScript program by importing its module, without any of the importing variables.

I anticipate the incorrect ES6 compilation behavior can be renovated.

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