mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibWeb: Replace GlobalObject with VM in remaining AOs [Part 4/4]
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 07:53:04 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/7b990c27a1 Pull-request: https://github.com/SerenityOS/serenity/pull/14973 Reviewed-by: https://github.com/davidot ✅
@@ -120,7 +120,7 @@ JS::Completion ClassicScript::run(RethrowErrors rethrow_errors)
|
||||
settings.clean_up_after_running_script();
|
||||
|
||||
// 2. Throw a "NetworkError" DOMException.
|
||||
return Bindings::throw_dom_exception_if_needed(global_object, [] {
|
||||
return Bindings::throw_dom_exception_if_needed(vm, [] {
|
||||
return DOM::NetworkError::create("Script error.");
|
||||
}).release_error();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user