rem: return this.lastIndexOf(pattern) == (this.length - pattern.length); 
add: var d = this.length - pattern.length; return d >= 0 && this.lastIndexOf(pattern) === d; 
context:   endsWith: function(pattern) {    return this.lastIndexOf(pattern) == (this.length - pattern.length);  },
meta: 3332	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3332/fc91a3e456ef26d0fe0296e4959fadfa2d081dd0/string.js/buggy/src/string.js