summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/try/early-catch-lex.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/statements/try/early-catch-lex.js')
-rw-r--r--js/src/tests/test262/language/statements/try/early-catch-lex.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/statements/try/early-catch-lex.js b/js/src/tests/test262/language/statements/try/early-catch-lex.js
new file mode 100644
index 0000000000..1ba4a3c6b4
--- /dev/null
+++ b/js/src/tests/test262/language/statements/try/early-catch-lex.js
@@ -0,0 +1,18 @@
+// |reftest| error:SyntaxError
+// Copyright (C) 2016 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+esid: sec-try-statement-static-semantics-early-errors
+es6id: 13.15.1
+description: >
+ It is a Syntax Error if any element of the BoundNames of CatchParameter
+ also occurs in the LexicallyDeclaredNames of Block.
+negative:
+ phase: parse
+ type: SyntaxError
+features: [let]
+---*/
+
+$DONOTEVALUATE();
+
+try { } catch (x) { let x; }