Debian Codegraph @

js/src/jit-test/tests/modules/bug-1287410.js

raw
1 // |jit-test| error: InternalError
2
3 let a = registerModule('a', parseModule("export var a = 1; export var b = 2;"));
4 let b = registerModule('b', parseModule("export var b = 3; export var c = 4;"));
5 let c = registerModule('c', parseModule("export * from 'a'; export * from 'b';"));
6 moduleLink(c);
7
8 // Module 'a' is replaced with another module that has not been instantiated.
9 // This should not happen and would be a bug in the module loader.
10 a = registerModule('a', parseModule("export var a = 1; export var b = 2;"));
11
12 let d = registerModule('d', parseModule("import { a } from 'c'; a;"));
13
14 // Attempting to instantiate 'd' throws an error because depdency 'a' of
15 // instantiated module 'c' is not instantiated.
16 moduleLink(d);
17 moduleEvaluate(d);