summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/coverage/bug1203695.js
blob: 5a8a091d6a78fb8bd6b354061b80ef811254eac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| --code-coverage

var lfcode = new Array();
lfcode.push = loadFile;
lfcode.push(")");
lfcode.push(`
assertThrowsInstanceOf(function () {}, TypeError);
var g = newGlobal();
`);
getLcovInfo(g);
function loadFile(lfVarx) {
    try {
        evaluate(lfVarx, { noScriptRval : true, compileAndGo : true });
    } catch (lfVare) {}
}