diff options
Diffstat (limited to 'js/src/tests/js1_8_5/regress/regress-469758.js')
-rw-r--r-- | js/src/tests/js1_8_5/regress/regress-469758.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/tests/js1_8_5/regress/regress-469758.js b/js/src/tests/js1_8_5/regress/regress-469758.js new file mode 100644 index 000000000..27fa1ed8a --- /dev/null +++ b/js/src/tests/js1_8_5/regress/regress-469758.js @@ -0,0 +1,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'); |