mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibWeb: Move DOMException from DOM/ to WebIDL/
This commit is contained in:
parent
ad04d7ac9b
commit
bbaa05fcf9
Notes:
sideshowbarker
2024-07-17 06:38:09 +09:00
Author: https://github.com/linusg
Commit: bbaa05fcf9
Pull-request: https://github.com/SerenityOS/serenity/pull/15357
Reviewed-by: https://github.com/awesomekling ✅
49 changed files with 206 additions and 203 deletions
|
@ -8,10 +8,10 @@
|
|||
#include <LibCore/ElapsedTimer.h>
|
||||
#include <LibJS/Interpreter.h>
|
||||
#include <LibWeb/Bindings/ExceptionOrUtils.h>
|
||||
#include <LibWeb/DOM/DOMException.h>
|
||||
#include <LibWeb/HTML/Scripting/ClassicScript.h>
|
||||
#include <LibWeb/HTML/Scripting/Environments.h>
|
||||
#include <LibWeb/HTML/Scripting/ExceptionReporter.h>
|
||||
#include <LibWeb/WebIDL/DOMException.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -124,7 +124,7 @@ JS::Completion ClassicScript::run(RethrowErrors rethrow_errors)
|
|||
dbgln("network error");
|
||||
|
||||
// 2. Throw a "NetworkError" DOMException.
|
||||
return throw_completion(DOM::NetworkError::create(settings.global_object(), "Script error."));
|
||||
return throw_completion(WebIDL::NetworkError::create(settings.global_object(), "Script error."));
|
||||
}
|
||||
|
||||
// 3. Otherwise, rethrow errors is false. Perform the following steps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue