summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/missing-export-offthread.js
blob: 2dca5c8705ae54c28ffa8c98e0fd0662379aab41 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| skip-if: helperThreadCount() === 0

load(libdir + "asserts.js")

// Don't assert.
offThreadCompileModuleToStencil("export { x };");
assertThrowsInstanceOf(() => {
  var stencil = finishOffThreadStencil();
  instantiateModuleStencil(stencil);
}, SyntaxError);