diff options
Diffstat (limited to 'js/src/tests/non262/regress/regress-469758.js')
-rw-r--r-- | js/src/tests/non262/regress/regress-469758.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/tests/non262/regress/regress-469758.js b/js/src/tests/non262/regress/regress-469758.js new file mode 100644 index 0000000000..426f6010e2 --- /dev/null +++ b/js/src/tests/non262/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.endsWith("[][j] is undefined"), true); + +reportCompare(0, 0, 'ok'); |