summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/evalInWorker-jit-options.js
blob: 24c624539f5d4ea85eb0471a2969d35e6ca5776a (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| skip-if: helperThreadCount() === 0
var fun = function() {
    var ex;
    try {
        setJitCompilerOption("baseline.warmup.trigger", 5);
    } catch(e) {
        ex = e;
    }
    assertEq(ex && ex.toString().includes("Can't set"), true);
}
evalInWorker("(" + fun.toString() + ")()");