1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 15:45:08 +00:00
Commit graph

1 commit

Author SHA1 Message Date
Timothy Flynn
356e58332c LibJS: Add and begin using a completion-compatible string formatter
The `deprecated_format` helper is a thin wrapper to map results from
AK::vformat to a throw completion. This will let us try to throw on OOM
conditions rather than just blowing up.

Note it's called `deprecated_format` as we will likely end up adding a
method named just `format` to return `ThrowCompletionOr<String>`, when
we begin the migration from DeprecatedString->String for LibJS.
2023-01-08 12:13:15 +01:00