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

Unified Diff: test/mjsunit/es6/string-includes.js

Issue 2399423003: [builtins] Move StringIncludes to a builtin. (Closed)
Patch Set: Rename incorrectly named var Created 4 years, 2 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/js/string.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/string-includes.js
diff --git a/test/mjsunit/es6/string-includes.js b/test/mjsunit/es6/string-includes.js
index c825ffdc6852496f332f28b1d70b9ef01d1ace24..ae69bd668578ec25dc476b79848d27cdda8cce7d 100644
--- a/test/mjsunit/es6/string-includes.js
+++ b/test/mjsunit/es6/string-includes.js
@@ -27,6 +27,10 @@
assertEquals(1, String.prototype.includes.length);
+var s = 'a';
+assertFalse(s.includes(null));
+assertFalse(s.includes(undefined));
+
Franzi 2016/10/10 12:58:58 Can we add assertFalse(s.includes()); just to prev
var reString = "asdf[a-z]+(asdf)?";
assertTrue(reString.includes("[a-z]+"));
assertTrue(reString.includes("(asdf)?"));
« no previous file with comments | « src/js/string.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698