Skip to content

Commit

Permalink
Rename String.prototype.contains to String.prototype.includes
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens authored and bterlson committed Dec 10, 2014
1 parent a5438b0 commit e2aa196
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/coverage.html
Expand Up @@ -193,7 +193,7 @@ <h1>Test262 Coverage for ECMAScript 6 Features</h1>
<td></td>
</tr>
<tr>
<td>String.prototype.contains</td>
<td>String.prototype.includes</td>
<td>None</td>
<td></td>
</tr>
Expand Down
Expand Up @@ -13,7 +13,7 @@ includes: [runTestCase.js]
---*/

function testcase() {
if('word'.contains('w', 5) === false) {
if('word'.includes('w', 5) === false) {
return true;
}
}
Expand Down
Expand Up @@ -13,7 +13,7 @@ includes: [runTestCase.js]
---*/

function testcase() {
if('word'.contains('o', 3) === false) {
if('word'.includes('o', 3) === false) {
return true;
}
}
Expand Down
Expand Up @@ -11,7 +11,7 @@ includes: [runTestCase.js]
---*/

function testcase() {
if('word'.contains('a', 0) === false) {
if('word'.includes('a', 0) === false) {
return true;
}
}
Expand Down
Expand Up @@ -13,7 +13,7 @@ includes: [runTestCase.js]
---*/

function testcase() {
if('word'.contains('w', 0) === true) {
if('word'.includes('w', 0) === true) {
return true;
}
}
Expand Down
Expand Up @@ -13,7 +13,7 @@ includes: [runTestCase.js]
---*/

function testcase() {
if('word'.contains('w') === true) {
if('word'.includes('w') === true) {
return true;
}
}
Expand Down
Expand Up @@ -11,7 +11,7 @@ includes: [runTestCase.js]
---*/

function testcase() {
if('word'.contains.length === 1) {
if('word'.includes.length === 1) {
return true;
}
}
Expand Down

0 comments on commit e2aa196

Please sign in to comment.