mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
LibWeb/WebIDL: Upgrade QuotaExceededError to its own interface
See 48eba6d
This commit is contained in:
parent
c12f21498c
commit
2a8b83a568
Notes:
github-actions[bot]
2025-12-29 16:16:14 +00:00
Author: https://github.com/shannonbooth
Commit: 2a8b83a568
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7239
17 changed files with 437 additions and 20 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#include <LibWeb/HTML/Scripting/ModuleScript.h>
|
||||
#include <LibWeb/WebIDL/DOMException.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
#include <LibWeb/WebIDL/QuotaExceededError.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
|
@ -116,7 +117,7 @@ JS::Promise* JavaScriptModuleScript::run(PreventErrorReporting)
|
|||
// then set evaluationPromise to a promise rejected with a new "QuotaExceededError" DOMException.
|
||||
if (elevation_promise_or_error.is_error()) {
|
||||
auto promise = JS::Promise::create(realm);
|
||||
promise->reject(WebIDL::QuotaExceededError::create(realm, "Failed to evaluate module script"_utf16).ptr());
|
||||
promise->reject(WebIDL::QuotaExceededError::create(realm, "Failed to evaluate module script"_utf16));
|
||||
|
||||
evaluation_promise = promise;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue