summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/self-test/delazification-mode-00.js
blob: 036065c68868cbcd957dfff4ee1701d8b50ff3b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//|jit-test| skip-if: isLcovEnabled()

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-00.js",
    lineNumber: 1,
    eagerDelazificationStrategy: "OnDemandOnly",
    newContext: true,
};
evaluate(source, options);