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

Unified Diff: test/mjsunit/harmony/regexp-no-change-exec.js

Issue 1596483005: Add ES2015 RegExp full subclassing semantics behind a flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: camelCase 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 | « test/mjsunit/harmony/regexp-change-exec.js ('k') | test/mjsunit/regexp-string-methods.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/regexp-no-change-exec.js
diff --git a/test/message/regress/regress-4829-1.js b/test/mjsunit/harmony/regexp-no-change-exec.js
similarity index 51%
copy from test/message/regress/regress-4829-1.js
copy to test/mjsunit/harmony/regexp-no-change-exec.js
index 1ad5feda8cb96cd24e4c47f7407c9699d150c327..30b5050945051ef61178019eec66dd1891e305ef 100644
--- a/test/message/regress/regress-4829-1.js
+++ b/test/mjsunit/harmony/regexp-no-change-exec.js
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function tag() {}
+// Flags: --no-harmony-regexp-exec
-tag(tag`\xyy`);
+class MyError extends Error { }
+RegExp.prototype.exec = () => { throw new MyError() };
+assertEquals(null, "foo".match(/bar/));
« no previous file with comments | « test/mjsunit/harmony/regexp-change-exec.js ('k') | test/mjsunit/regexp-string-methods.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698