summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/module-filename.js
blob: 59017dd674fc6f073b856b875c97f36f36e87fac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
load(libdir + "asserts.js");

compileToStencil("", { fileName: "", module: true });
assertThrowsInstanceOf(() => {
  compileToStencil("", { fileName: null, module: true });
}, Error);

if (helperThreadCount() > 0) {
  offThreadCompileModuleToStencil("", { fileName: "", module: true });
  assertThrowsInstanceOf(() => {
    offThreadCompileModuleToStencil("", { fileName: null, module: true });
  }, Error);
}