mirror of
https://github.com/RGBCube/serenity
synced 2025-07-01 14:42:07 +00:00
LibWeb: Replace GlobalObject with VM in remaining AOs [Part 4/4]
This commit is contained in:
parent
2d69a3b266
commit
7b990c27a1
9 changed files with 62 additions and 66 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue