Eliminate false positives: String.prototype.trimEnd, String.prototype.trimStart

This commit is contained in:
Rick Waldron 2018-11-30 09:37:16 -05:00
parent 6d2288fe79
commit d98f3f4d63
6 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,7 @@ var thisVal = {
},
};
assert.sameValue(typeof String.prototype.trimEnd, 'function');
assert.throws(TypeError, function() {
String.prototype.trimEnd.call(thisVal);
});

View File

@ -51,6 +51,7 @@ var thisVal = {
},
};
assert.sameValue(typeof String.prototype.trimEnd, 'function');
assert.throws(TypeError, function() {
String.prototype.trimEnd.call(thisVal);
});

View File

@ -52,6 +52,7 @@ var thisVal = {
},
};
assert.sameValue(typeof String.prototype.trimEnd, 'function');
assert.throws(TypeError, function() {
String.prototype.trimEnd.call(thisVal);
});

View File

@ -33,6 +33,7 @@ var thisVal = {
},
};
assert.sameValue(typeof String.prototype.trimStart, 'function');
assert.throws(TypeError, function() {
String.prototype.trimStart.call(thisVal);
});

View File

@ -51,6 +51,7 @@ var thisVal = {
},
};
assert.sameValue(typeof String.prototype.trimStart, 'function');
assert.throws(TypeError, function() {
String.prototype.trimStart.call(thisVal);
});

View File

@ -52,6 +52,7 @@ var thisVal = {
},
};
assert.sameValue(typeof String.prototype.trimStart, 'function');
assert.throws(TypeError, function() {
String.prototype.trimStart.call(thisVal);
});