summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1113139.js
blob: 31ae9e384b8bb58bd58cbe1e9ce3bc6c5b79984f (plain)
1
2
3
4
5
6
7
8
9
var lfcode = new Array();
lfcode.push = function(x) { eval("(function() { " + x + " })();"); };
lfcode.push("\
function error(str) { try { eval(str); } catch (e) { return e; } }\
const YIELD_PAREN = error('(function*(){(for (y of (yield 1, 2)) y)})').message;\
const GENEXP_YIELD = error('(function*(){(for (x of yield 1) x)})').message;\
const GENERIC = error('(for)').message;\
const eval = [];\
");