summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug906284.js
blob: 8b7e0ea72d4bc305217e828a507d0c3207f4044d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict"
function f() {
    h = {}
}
var c = 0;
for (var i=0; i<3; i++) {
    try {
	new f();
	assertEq(0, 1);
    } catch(e) {
	c++;
	assertEq(e.message.includes("undeclared variable"), true);
    }
}
assertEq(c, 3);