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

Unified Diff: test/mjsunit/harmony/regexp-dotall.js

Issue 2841633004: [regexp] Fix passing all flags to RegExp construction (Closed)
Patch Set: Created 3 years, 8 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/objects.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/regexp-dotall.js
diff --git a/test/mjsunit/harmony/regexp-dotall.js b/test/mjsunit/harmony/regexp-dotall.js
index 9bf78431a9dca19fc0f4bdb34dff48193c731a00..eed5d26f05d2e1687f80831fc1253612eec0ad2b 100644
--- a/test/mjsunit/harmony/regexp-dotall.js
+++ b/test/mjsunit/harmony/regexp-dotall.js
@@ -56,6 +56,12 @@ function toSlowMode(re) {
assertFalse(re.dotAll);
}
+// Different construction variants with all flags.
+{
+ assertEquals("gimsuy", new RegExp("", "yusmig").flags);
+ assertEquals("gimsuy", new RegExp().compile("", "yusmig").flags);
+}
+
// Default '.' behavior.
{
let re = /^.$/;
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698