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

Unified Diff: test/mjsunit/harmony/destructuring.js

Issue 1767063002: Fix completion value of empty catch block in the presence of destructuring. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 9 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/destructuring.js
diff --git a/test/mjsunit/harmony/destructuring.js b/test/mjsunit/harmony/destructuring.js
index b6eb6eab09e8152047fb07de83ab7141e7e4392d..d058b8a77d2817fb593e69b20b2d6d03d340e023 100644
--- a/test/mjsunit/harmony/destructuring.js
+++ b/test/mjsunit/harmony/destructuring.js
@@ -1131,4 +1131,7 @@
assertEquals("hello", foo);
assertEquals("world", bar);
assertEquals(42, baz);
+
+ assertEquals(undefined, eval('try {throw {foo: 1, bar: 2}} catch({foo}) {}'));
+ assertEquals(undefined, eval('try {throw [1, 2, 3]} catch([x]) {}'));
})();
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698