1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:08:10 +00:00

LibJS: Add and begin using a completion-compatible string builder

ThrowableStringBuilder is a thin wrapper around StringBuilder to map
results from the try_* methods to a throw completion. This will let us
try to throw on OOM conditions rather than just blowing up.
This commit is contained in:
Timothy Flynn 2023-01-05 12:56:08 -05:00 committed by Linus Groh
parent fab8ef3dfc
commit 76b9d06b19
4 changed files with 107 additions and 30 deletions

View file

@ -231,6 +231,7 @@ set(SOURCES
Runtime/Temporal/ZonedDateTime.cpp
Runtime/Temporal/ZonedDateTimeConstructor.cpp
Runtime/Temporal/ZonedDateTimePrototype.cpp
Runtime/ThrowableStringBuilder.cpp
Runtime/TypedArray.cpp
Runtime/TypedArrayConstructor.cpp
Runtime/TypedArrayPrototype.cpp