mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
Everywhere: Remove sv
suffix from format string literals
This prevents the compile-time checks that would catch errors in the format invocation (which would usually lead to a runtime crash).
This commit is contained in:
parent
917537b449
commit
f070264800
Notes:
github-actions[bot]
2025-04-09 00:01:12 +00:00
Author: https://github.com/trflynn89
Commit: f070264800
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4286
28 changed files with 51 additions and 51 deletions
|
@ -718,7 +718,7 @@ DecodeResult from_base64(VM& vm, StringView string, Alphabet alphabet, LastChunk
|
|||
// i. If char is either "+" or "/", then
|
||||
if (ch == '+' || ch == '/') {
|
||||
// 1. Let error be a new SyntaxError exception.
|
||||
auto error = vm.throw_completion<SyntaxError>(MUST(String::formatted("Invalid character '{}'"sv, ch)));
|
||||
auto error = vm.throw_completion<SyntaxError>(MUST(String::formatted("Invalid character '{}'", ch)));
|
||||
|
||||
// 2. Return the Record { [[Read]]: read, [[Bytes]]: bytes, [[Error]]: error }.
|
||||
return { .read = read, .bytes = move(bytes), .error = move(error) };
|
||||
|
@ -740,7 +740,7 @@ DecodeResult from_base64(VM& vm, StringView string, Alphabet alphabet, LastChunk
|
|||
|
||||
if (!standard_base64_alphabet.contains(ch)) {
|
||||
// i. Let error be a new SyntaxError exception.
|
||||
auto error = vm.throw_completion<SyntaxError>(MUST(String::formatted("Invalid character '{}'"sv, ch)));
|
||||
auto error = vm.throw_completion<SyntaxError>(MUST(String::formatted("Invalid character '{}'", ch)));
|
||||
|
||||
// ii. Return the Record { [[Read]]: read, [[Bytes]]: bytes, [[Error]]: error }.
|
||||
return { .read = read, .bytes = move(bytes), .error = move(error) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue