Skip to content
Snippets Groups Projects
Commit d98f3f4d authored by Rick Waldron's avatar Rick Waldron
Browse files

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

parent 6d2288fe
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ var thisVal = {
},
};
assert.sameValue(typeof String.prototype.trimEnd, 'function');
assert.throws(TypeError, function() {
String.prototype.trimEnd.call(thisVal);
});
......@@ -51,6 +51,7 @@ var thisVal = {
},
};
assert.sameValue(typeof String.prototype.trimEnd, 'function');
assert.throws(TypeError, function() {
String.prototype.trimEnd.call(thisVal);
});
......@@ -52,6 +52,7 @@ var thisVal = {
},
};
assert.sameValue(typeof String.prototype.trimEnd, 'function');
assert.throws(TypeError, function() {
String.prototype.trimEnd.call(thisVal);
});
......@@ -33,6 +33,7 @@ var thisVal = {
},
};
assert.sameValue(typeof String.prototype.trimStart, 'function');
assert.throws(TypeError, function() {
String.prototype.trimStart.call(thisVal);
});
......@@ -51,6 +51,7 @@ var thisVal = {
},
};
assert.sameValue(typeof String.prototype.trimStart, 'function');
assert.throws(TypeError, function() {
String.prototype.trimStart.call(thisVal);
});
......@@ -52,6 +52,7 @@ var thisVal = {
},
};
assert.sameValue(typeof String.prototype.trimStart, 'function');
assert.throws(TypeError, function() {
String.prototype.trimStart.call(thisVal);
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment