summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-469758.js
blob: 27fa1ed8a751049b2c7fd46073d4407de963d2d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/

var err;
try {
    {let i=1}
    {let j=1; [][j][2]}
} catch (e) {
    err = e;
}
assertEq(err instanceof TypeError, true);
assertEq(err.message, "[][j] is undefined");

reportCompare(0, 0, 'ok');