blob: bed6466b45dcbd14f0fdf9b472d5e2010f1e8ff6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
function f() {
var a = [];
for (var i = 0; i < 1000; i++) {
a.x = {}
}
a[i][0] = 0;
}
var e;
try {
f();
} catch (error) {e = error;}
assertEq(e.toString(), 'TypeError: a[i] is undefined');
|