mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Bug 1341411 - Support circular module dependencies through export* per ES2017
This commit is contained in:
parent
832b047eea
commit
39a2b217b7
7 changed files with 26 additions and 19 deletions
1
js/src/jit-test/modules/empty.js
Normal file
1
js/src/jit-test/modules/empty.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
// Intentionally empty.
|
||||
1
js/src/jit-test/modules/export-star-circular-1.js
Normal file
1
js/src/jit-test/modules/export-star-circular-1.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
export* from "export-star-circular-2.js";
|
||||
3
js/src/jit-test/modules/export-star-circular-2.js
Normal file
3
js/src/jit-test/modules/export-star-circular-2.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export {y as x} from "export-star-circular-1.js";
|
||||
|
||||
export var y = "pass";
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
// |jit-test| module; error:SyntaxError
|
||||
|
||||
export { a } from "empty.js";
|
||||
export* from "module1.js";
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
// |jit-test| module
|
||||
|
||||
import { x, y } from "export-star-circular-1.js";
|
||||
|
||||
assertEq(x, "pass");
|
||||
assertEq(y, "pass");
|
||||
Loading…
Add table
Add a link
Reference in a new issue