summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/regress/regress-469758.js
blob: 426f6010e2c9f2854ab59e48313d608aa7ca3864 (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.endsWith("[][j] is undefined"), true);

reportCompare(0, 0, 'ok');