mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
LibWeb: Remove a bunch of calls to to_byte_string
A bunch of this is leftover from pre porting over to new AK::String. For example, for functions which previously took a ByteString const& now accepting a StringView.
This commit is contained in:
@@ -59,7 +59,7 @@ WebIDL::ExceptionOr<JS::GCPtr<JavaScriptModuleScript>> JavaScriptModuleScript::c
|
||||
// 8. If result is a list of errors, then:
|
||||
if (result.is_error()) {
|
||||
auto& parse_error = result.error().first();
|
||||
dbgln("JavaScriptModuleScript: Failed to parse: {}", parse_error.to_byte_string());
|
||||
dbgln("JavaScriptModuleScript: Failed to parse: {}", parse_error.to_string());
|
||||
|
||||
// 1. Set script's parse error to result[0].
|
||||
script->set_parse_error(JS::SyntaxError::create(settings_object.realm(), parse_error.to_string()));
|
||||
|
||||
Reference in New Issue
Block a user