michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: michael@0: var err; michael@0: try { michael@0: {let i=1} michael@0: {let j=1; [][j][2]} michael@0: } catch (e) { michael@0: err = e; michael@0: } michael@0: assertEq(err instanceof TypeError, true); michael@0: assertEq(err.message, "[][j] is undefined"); michael@0: michael@0: reportCompare(0, 0, 'ok');