You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 27, 2021. It is now read-only.
The module tests don't make sense. They will always fail, even in environments supporting ES6 modules:
import/export statements are allowed only in top-level scope so new Function('export var a = 1') will always fail.
import/export are only allowed in modules, not scripts; in browsers JS code will be able to be loaded as a module via <script type="module" src="path.js"><script>, in Node it's not fully clear yet. In any case, those tests will need to be run in a different way then every other one.
For import {a} from 'b' to not fail the environment needs to first be able to resolve the module 'b'.
To sum up, the tests in their current form don't really make any sense, they will always fail for multiple reasons so they should be removed.