1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-18 03:42:07 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins
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
..
AggregateError
Array LibJS/Tests: Disable one Array.prototype.toSpliced test for now 2022-07-04 18:50:35 +02:00
ArrayBuffer LibJS: Revert partial resizable ArrayBuffer implementation 2022-07-06 15:52:57 +02:00
Atomics
BigInt LibJS: Only coerce value once in BigInt constructor 2022-08-03 20:59:59 +01:00
Boolean
DataView
Date LibLocale+LibJS: Update to CLDR version 42.0.0 2022-10-25 10:10:39 +01:00
Error
FinalizationRegistry
Function LibJS: Don't assume a this argument for function.prototype.bind 2022-08-17 23:56:24 +01:00
functions LibJS: Make parseFloat use the new double parser 2022-10-23 15:48:45 +02:00
Infinity
Intl LibJS: Use more accurate number-to-string method in Intl.NumberFormat 2022-11-04 21:12:10 +00:00
JSON LibJS: Fix that non-double numbers from JSON were truncated to i32 2022-10-23 15:48:45 +02:00
Map
Math LibJS: Add special cases for Math.cosh and add spec comments 2022-08-20 23:53:55 +01:00
NaN
Number LibJS: Use more accurate number-to-string method in Number toExponential 2022-11-04 21:12:10 +00:00
Object
Promise
Proxy
Reflect
RegExp LibJS: Implement RegExp legacy static properties 2022-10-17 17:08:33 +02:00
Set
ShadowRealm LibJS: Implement & use the {Ordinary,PrepareFor}WrappedFunctionCall AOs 2022-07-31 14:39:06 +02:00
String LibJS: Fix UTF-16 corruption in String.prototype.replace() 2022-11-19 11:30:06 -07:00
Symbol
Temporal LibJS: Fix length of PlainDateTime.withPlainTime 2022-11-03 21:09:58 +00:00
TypedArray LibJS: Make a TypedArray test actually run on all different types 2022-10-23 15:48:45 +02:00
WeakMap
WeakRef
WeakSet