diff options
Diffstat (limited to 'js/src/jit-test/tests/modules/bug-1247934.js')
-rw-r--r-- | js/src/jit-test/tests/modules/bug-1247934.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/modules/bug-1247934.js b/js/src/jit-test/tests/modules/bug-1247934.js new file mode 100644 index 000000000..82746ac61 --- /dev/null +++ b/js/src/jit-test/tests/modules/bug-1247934.js @@ -0,0 +1,11 @@ +// |jit-test| --unboxed-arrays + +let moduleRepo = {}; +setModuleResolveHook(function(module, specifier) { + return moduleRepo[specifier]; +}); +setJitCompilerOption("ion.warmup.trigger", 50); +s = ""; +for (i = 0; i < 1024; i++) s += "export let e" + i + "\n"; +moduleRepo['a'] = parseModule(s); +parseModule("import * as ns from 'a'").declarationInstantiation(); |