blob: ea16ee702795977c506b0af6ac6d55749b91a424 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//|jit-test| skip-if: isLcovEnabled() || helperThreadCount() === 0
// GCs might trash the stencil cache. Prevent us from scheduling too many GCs.
if ('gczeal' in this) {
gczeal(0);
}
let source = `
function foo() {
return "foo";
}
waitForStencilCache(foo);
// false would be expected if threads are disabled.
assertEq(isInStencilCache(foo), true);
`;
const options = {
fileName: "inner-02.js",
lineNumber: 1,
eagerDelazificationStrategy: "ConcurrentDepthFirst",
newContext: true,
};
evaluate(source, options);
|