1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 07:25:07 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins/String
Timothy Flynn 424c7eaa40 LibJS: Fix replaceAll crash for overlapping search string positions
The implementation of String.prototype.replaceAll cannot use AK's
implementation of String::find_all when finding the indices of the
search string in the source string. String::find_all will return indices
[0, 1] for String("aaa").find_all("aa") - i.e. it returns overlapping
results. This is not allowed by the JavaScript specification for
replaceAll.
2021-07-06 15:07:26 +01:00
..
String.fromCharCode.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.fromCodePoint.js LibJS: Add the String.fromCodePoint() method 2021-06-16 10:29:10 +01:00
String.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype-generic-functions.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.at.js LibJS: Implement 'Relative Indexing Method' proposal (.at()) 2021-03-12 19:01:08 +01:00
String.prototype.charAt.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.charCodeAt.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.concat.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.endsWith.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.includes.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.indexOf.js LibJS: Add String.prototype.indexOf position argument 2021-06-30 16:08:00 +01:00
String.prototype.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.lastIndexOf.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.match.js LibJS: Implement (mostly) String.prototype.match 2021-03-14 11:04:50 +01:00
String.prototype.padEnd.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.padStart.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.repeat.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.replace.js LibJS: Implement and use the GetSubstitution abstract operation 2021-07-05 23:26:41 +01:00
String.prototype.replaceAll.js LibJS: Fix replaceAll crash for overlapping search string positions 2021-07-06 15:07:26 +01:00
String.prototype.slice.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.split.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.startsWith.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.substr.js LibJS: Implement String.prototype.substr according to the spec 2021-04-15 08:38:19 +02:00
String.prototype.substring.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.toLowerCase.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.toString.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.toUpperCase.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.trim.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.prototype.valueOf.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
String.raw.js LibJS: Rewrite String.raw() closer to the specification 2021-06-28 13:27:13 +01:00