1 2 3 4 5 6 7 8 9 10 11
var err = 0; for (let x of [0, Object.create(null)]) { try { (new Int8Array)[1] = x; } catch (e) { err += 1; } } assertEq(err, 1);