Index: src/harmony-string.js |
diff --git a/src/harmony-string.js b/src/harmony-string.js |
index 1c477e2fa5c996fc279a3b8bac500286da8eb9c0..c4717df5dbdbf86c0584b3c52ea3e8fdba433698 100644 |
--- a/src/harmony-string.js |
+++ b/src/harmony-string.js |
@@ -95,14 +95,14 @@ function StringEndsWith(searchString /* position */) { // length == 1 |
// ES6 draft 04-05-14, section 21.1.3.6 |
-function StringContains(searchString /* position */) { // length == 1 |
- CHECK_OBJECT_COERCIBLE(this, "String.prototype.contains"); |
+function StringIncludes(searchString /* position */) { // length == 1 |
+ CHECK_OBJECT_COERCIBLE(this, "String.prototype.includes"); |
var s = TO_STRING_INLINE(this); |
if (IS_REGEXP(searchString)) { |
throw MakeTypeError("first_argument_not_regexp", |
- ["String.prototype.contains"]); |
+ ["String.prototype.includes"]); |
} |
var ss = TO_STRING_INLINE(searchString); |
@@ -184,7 +184,7 @@ function ExtendStringPrototype() { |
// Set up the non-enumerable functions on the String prototype object. |
InstallFunctions($String.prototype, DONT_ENUM, $Array( |
"codePointAt", StringCodePointAt, |
- "contains", StringContains, |
+ "includes", StringIncludes, |
"endsWith", StringEndsWith, |
"repeat", StringRepeat, |
"startsWith", StringStartsWith |