blob: c215b3e8ebba3e6b6ce13c941bff7e239e93e3ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
let a = registerModule('a', parseModule("import 'b';"));
let b = registerModule('b', parseModule("import 'c'; await 1; throw 'error';"));
let c = registerModule('c', parseModule("import 'b';"));
let status1;
import('a').then(() => { status1 = 'loaded' }).catch(e => { status1 = e; });
drainJobQueue();
assertEq(status1, 'error');
let status2;
import('c').then(() => { status2 = 'loaded' }).catch(e => { status2 = e; });
drainJobQueue();
assertEq(status2, 'error');
|