1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 13:45:08 +00:00
serenity/Userland/Libraries/LibJS/Runtime/Temporal
Timothy Flynn 115baa7e32 LibJS+Everywhere: Make PrimitiveString and Utf16String fallible
This makes construction of Utf16String fallible in OOM conditions. The
immediate impact is that PrimitiveString must then be fallible as well,
as it may either transcode UTF-8 to UTF-16, or create a UTF-16 string
from ropes.

There are a couple of places where it is very non-trivial to propagate
the error further. A FIXME has been added to those locations.
2023-01-08 12:13:15 +01:00
..
AbstractOperations.cpp LibJS+Everywhere: Make PrimitiveString and Utf16String fallible 2023-01-08 12:13:15 +01:00
AbstractOperations.h LibJS: Rename ToIntegerThrowOnInfinity to ToIntegerWithTruncation 2023-01-06 11:16:55 +01:00
Calendar.cpp LibJS+Everywhere: Make PrimitiveString and Utf16String fallible 2023-01-08 12:13:15 +01:00
Calendar.h LibJS: Convert calendar operation results to floats 2023-01-05 19:49:09 +01:00
CalendarConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
CalendarConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
CalendarPrototype.cpp LibJS+Everywhere: Make PrimitiveString and Utf16String fallible 2023-01-08 12:13:15 +01:00
CalendarPrototype.h LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00
Duration.cpp LibJS: Replace "is not zero" language in Temporal comments 2023-01-06 11:16:55 +01:00
Duration.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
DurationConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
DurationConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
DurationPrototype.cpp LibJS: Replace standalone js_string() with PrimitiveString::create() 2022-12-07 16:43:06 +00:00
DurationPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
Instant.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
Instant.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
InstantConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
InstantConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
InstantPrototype.cpp LibJS: Replace standalone js_string() with PrimitiveString::create() 2022-12-07 16:43:06 +00:00
InstantPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
ISO8601.cpp LibJS: Align ISO 8601 grammar with annotations from IXDTF 2022-11-03 19:15:50 +00:00
ISO8601.h LibJS: Align ISO 8601 grammar with annotations from IXDTF 2022-11-03 19:15:50 +00:00
Now.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
Now.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainDate.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainDate.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainDateConstructor.cpp LibJS: Rename ToIntegerThrowOnInfinity to ToIntegerWithTruncation 2023-01-06 11:16:55 +01:00
PlainDateConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainDatePrototype.cpp LibJS: Convert calendar operation results to floats 2023-01-05 19:49:09 +01:00
PlainDatePrototype.h LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00
PlainDateTime.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainDateTime.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainDateTimeConstructor.cpp LibJS: Rename ToIntegerThrowOnInfinity to ToIntegerWithTruncation 2023-01-06 11:16:55 +01:00
PlainDateTimeConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainDateTimePrototype.cpp LibJS: Convert calendar operation results to floats 2023-01-05 19:49:09 +01:00
PlainDateTimePrototype.h LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00
PlainMonthDay.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainMonthDay.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainMonthDayConstructor.cpp LibJS: Rename ToIntegerThrowOnInfinity to ToIntegerWithTruncation 2023-01-06 11:16:55 +01:00
PlainMonthDayConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainMonthDayPrototype.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
PlainMonthDayPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainTime.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainTime.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainTimeConstructor.cpp LibJS: Rename ToIntegerThrowOnInfinity to ToIntegerWithTruncation 2023-01-06 11:16:55 +01:00
PlainTimeConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainTimePrototype.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
PlainTimePrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainYearMonth.cpp LibJS: Fix spec link and spec comment in PlainYearMonth 2022-12-31 00:05:20 +01:00
PlainYearMonth.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainYearMonthConstructor.cpp LibJS: Rename ToIntegerThrowOnInfinity to ToIntegerWithTruncation 2023-01-06 11:16:55 +01:00
PlainYearMonthConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainYearMonthPrototype.cpp LibJS: Convert calendar operation results to floats 2023-01-05 19:49:09 +01:00
PlainYearMonthPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
Temporal.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
Temporal.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
TimeZone.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
TimeZone.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TimeZoneConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
TimeZoneConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
TimeZonePrototype.cpp LibJS: Replace standalone js_string() with PrimitiveString::create() 2022-12-07 16:43:06 +00:00
TimeZonePrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
ZonedDateTime.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
ZonedDateTime.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ZonedDateTimeConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
ZonedDateTimeConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
ZonedDateTimePrototype.cpp LibJS+Everywhere: Make PrimitiveString and Utf16String fallible 2023-01-08 12:13:15 +01:00
ZonedDateTimePrototype.h LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00