summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug584499-1.js
blob: bc989537994e6e38bf67b068dd5ae73e8249e0f2 (plain)
1
2
3
4
5
6
// |jit-test| error: TypeError
var s = "12345";
for(var i=0; i<7; i++) {
    print(s[i].length);
}