summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/bug-1263355-25.js
blob: 0775dc88eaa4703dde6eb3494663a71f36f5ee08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// |jit-test| error: TypeError

var lfLogBuffer = `
function testcase( []  = (function() { return x++; }), get, target, ... f1)  {
        return function () {
        } ( ... 2 || (this)  ? (yield)  : (yield)) ;
    }
`;
lfLogBuffer = lfLogBuffer.split('\n');
var lfCodeBuffer = "";
while (true) {
    var line = lfLogBuffer.shift();
    if (line == null) {
        break;
    } else {
        lfCodeBuffer += line + "\n";
    }
}
if (lfCodeBuffer) loadFile(lfCodeBuffer);
function loadFile(lfVarx) {
    eval(lfVarx);
}