Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

ensureEvaluated does not use the correct loader during evaluation #134

@justinbmeyer

Description

@justinbmeyer

ensureEvaluated does not use the correct loader during evaluation, the one that is passed. Instead it always uses global.System as the loader. This breaks code that makes use of loaders not called global.System.

Traceur produces code that looks like:

System.register("basics/es6module", ['basics/amdmodule'], function($__0) { "use strict"; 
  var __moduleName = "basics/es6module"; 
  var amdMod = System.get($__0).default; 
  ...
;});

During transpile, global.System is set to global.traceurSystem. After transpile, it is set back to the original global.System.

However, it should be then temporarily set to the "loader" argument of ensureEvaluated. After __eval is called System should then be set back to the original global.System.

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