summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1139368.js
blob: f47dc73db751ecb0c56ffc6befb41f12610e9072 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| error: TypeError
function f() {
    for (var i=2; i<2; i++) {
	var a = /a/;
    }
    for (var i=0; i<2; i++) {
	a.exec("aaa");
    }
}
f();