ladybird/Userland/Libraries/LibJS/Tests/builtins/String
Andreas Kling f7a252ae85 LibJS: Fix UTF-16 corruption in String.prototype.replace()
We were mistakenly trying to append UTF-16 code units to a StringBuilder
via the append(char) API. This patch fixes that by accumulating the
result in a Vector<u16> instead.

This'll be a bit worse for performance, since we're now doing additional
UTF-16 string conversions, but we're going for correctness at this stage
and can worry about performance later.
2022-11-19 11:30:06 -07:00
..
String.fromCharCode.js
String.fromCodePoint.js
String.js
String.prototype-generic-functions.js
String.prototype.at.js
String.prototype.charAt.js
String.prototype.charCodeAt.js
String.prototype.codePointAt.js
String.prototype.concat.js
String.prototype.endsWith.js
String.prototype.includes.js
String.prototype.indexOf.js
String.prototype.js
String.prototype.lastIndexOf.js
String.prototype.localeCompare.js
String.prototype.match.js
String.prototype.matchAll.js
String.prototype.normalize.js
String.prototype.padEnd.js
String.prototype.padStart.js
String.prototype.repeat.js
String.prototype.replace.js LibJS: Fix UTF-16 corruption in String.prototype.replace() 2022-11-19 11:30:06 -07:00
String.prototype.replaceAll.js
String.prototype.search.js
String.prototype.slice.js
String.prototype.split.js
String.prototype.startsWith.js
String.prototype.substr.js
String.prototype.substring.js
String.prototype.toLocaleLowerCase.js
String.prototype.toLocaleUpperCase.js
String.prototype.toLowerCase.js
String.prototype.toString.js
String.prototype.toUpperCase.js
String.prototype.trim.js
String.prototype.valueOf.js
String.raw.js