Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Unified Diff: test/mjsunit/es6/block-conflicts.js

Issue 2112223002: Revert of Add errors for declarations which conflict with catch parameters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | test/mjsunit/es6/block-conflicts-sloppy.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/block-conflicts.js
diff --git a/test/mjsunit/es6/block-conflicts.js b/test/mjsunit/es6/block-conflicts.js
index bca3cb4ea545a9981b8cd75f0cefb242d3ed6171..0e3d4e5a2ae80ec861b6552022628afb7b249a01 100644
--- a/test/mjsunit/es6/block-conflicts.js
+++ b/test/mjsunit/es6/block-conflicts.js
@@ -170,5 +170,8 @@
TestNoConflict('(function (x) {' + varbinds[v] + '})();');
}
+// Test conflicting catch/function bindings.
+TestNoConflict('try {} catch(x) {' + funbind + '}');
+
// Test conflicting parameter/function bindings.
TestNoConflict('(function (x) {' + funbind + '})();');
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | test/mjsunit/es6/block-conflicts-sloppy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698