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