summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/self-test/delazification-mode-03.js
blob: 53f158765e35a629f33e8223644feed5a3f2b3db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
let source = `
  function foo() {
    return "foo";
  }

  // Wait is skipped as the source is not registered in the stencil cache.
  waitForStencilCache(foo);
  assertEq(isInStencilCache(foo), false);
`;

const options = {
    fileName: "inner-03.js",
    lineNumber: 1,
    eagerDelazificationStrategy: "ParseEverythingEagerly",
    newContext: true,
};
evaluate(source, options);