summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1698609.js
blob: d28297c7c60eca3fa2db1058db6b4088139a9771 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| skip-if: helperThreadCount() === 0; --code-coverage
// Note: --code-coverage is a hack here to disable lazy parsing.

var src = "function foo(x) { return /abc/.test(x) }";
var job = offThreadCompileToStencil(src);
var stencil = finishOffThreadStencil(job);
var re = evalStencil(stencil);

for (var i = 0; i < 200; i++) {
    foo("abc");
}