blob: 9ee6217abf799e557f293e759888e4bfb8e3a944 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// |jit-test| error: TypeError
let moduleRepo = {};
setModuleResolveHook(function(module, specifier) {
return moduleRepo[specifier];
});
let a = moduleRepo['a'] = parseModule("var x = 1; export { x };");
let b = moduleRepo['b'] = parseModule("import { x as y } from 'a';");
a.__proto__ = {15: 1337};
b.declarationInstantiation();
|