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

Unified Diff: test/mjsunit/regress/regress-1130.js

Issue 1189743003: [destructuring] Implement parameter pattern matching. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix magic number issue Created 5 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 | « test/mjsunit/harmony/destructuring.js ('k') | test/mjsunit/regress/regress-436896.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-1130.js
diff --git a/test/mjsunit/regress/regress-1130.js b/test/mjsunit/regress/regress-1130.js
index 07d5e3d46727e4f8fef105dd895f205d33200a56..6ba430b04f28cbaf45e37f91f4a05d918e0d83ec 100644
--- a/test/mjsunit/regress/regress-1130.js
+++ b/test/mjsunit/regress/regress-1130.js
@@ -35,6 +35,6 @@ try {
eval("(function() { const x; var x })")();
} catch (e) {
exception = true;
- assertTrue(e instanceof TypeError);
+ assertTrue(e instanceof SyntaxError);
}
assertTrue(exception);
« no previous file with comments | « test/mjsunit/harmony/destructuring.js ('k') | test/mjsunit/regress/regress-436896.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698