mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
AK: Stop using DeprecatedString
in Base64 encoding
This commit is contained in:
parent
99c1b634fc
commit
25f2e4981c
14 changed files with 47 additions and 27 deletions
|
@ -1423,8 +1423,8 @@ JS_DEFINE_NATIVE_FUNCTION(Window::btoa)
|
|||
byte_string.append(code_point);
|
||||
}
|
||||
|
||||
auto encoded = encode_base64(byte_string.span());
|
||||
return JS::PrimitiveString::create(vm, move(encoded));
|
||||
auto encoded = MUST(encode_base64(byte_string.span()));
|
||||
return JS::PrimitiveString::create(vm, encoded.to_deprecated_string());
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#dom-window-focus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue