blob: 6be257683872792799f4072c9108bf87d6ab6e78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
var arr = [Math, Math, Math, Math, {}];
var obj = {};
var x;
var result = 'no error';
try {
for (var i = 0; i < arr.length; i++)
x = (obj instanceof arr[i]); // last iteration throws, triggering deep bail
} catch (exc) {
result = exc.constructor.name;
}
assertEq(result, 'TypeError');
|