Bug 1341411 - Support circular module dependencies through export* per ES2017

This commit is contained in:
janekptacijarabaci 2018-04-14 09:00:53 +02:00 committed by Roy Tam
commit 39a2b217b7
7 changed files with 26 additions and 19 deletions

View file

@ -0,0 +1 @@
// Intentionally empty.

View file

@ -0,0 +1 @@
export* from "export-star-circular-2.js";

View file

@ -0,0 +1,3 @@
export {y as x} from "export-star-circular-1.js";
export var y = "pass";

View file

@ -0,0 +1,4 @@
// |jit-test| module; error:SyntaxError
export { a } from "empty.js";
export* from "module1.js";

View file

@ -0,0 +1,6 @@
// |jit-test| module
import { x, y } from "export-star-circular-1.js";
assertEq(x, "pass");
assertEq(y, "pass");