mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-18 23:12:02 +00:00
LibWeb: Always set [[ErrorToRethrow]] for import validation errors
Corresponds to f6fb04a11f
This commit is contained in:
parent
4e854ca44a
commit
91e8a19391
Notes:
github-actions[bot]
2025-07-08 16:10:32 +00:00
Author: https://github.com/AtkinsSJ
Commit: 91e8a19391
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5353
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 32 additions and 18 deletions
|
@ -59,14 +59,14 @@ class FetchContext : public JS::GraphLoadingState::HostDefined {
|
|||
GC_DECLARE_ALLOCATOR(FetchContext);
|
||||
|
||||
public:
|
||||
JS::Value parse_error; // [[ParseError]]
|
||||
JS::Value error_to_rethrow; // [[ErrorToRethrow]]
|
||||
Fetch::Infrastructure::Request::Destination destination; // [[Destination]]
|
||||
PerformTheFetchHook perform_fetch; // [[PerformFetch]]
|
||||
GC::Ref<EnvironmentSettingsObject> fetch_client; // [[FetchClient]]
|
||||
|
||||
private:
|
||||
FetchContext(JS::Value parse_error, Fetch::Infrastructure::Request::Destination destination, PerformTheFetchHook perform_fetch, EnvironmentSettingsObject& fetch_client)
|
||||
: parse_error(parse_error)
|
||||
FetchContext(JS::Value error_to_rethrow, Fetch::Infrastructure::Request::Destination destination, PerformTheFetchHook perform_fetch, EnvironmentSettingsObject& fetch_client)
|
||||
: error_to_rethrow(error_to_rethrow)
|
||||
, destination(destination)
|
||||
, perform_fetch(perform_fetch)
|
||||
, fetch_client(fetch_client)
|
||||
|
@ -76,7 +76,7 @@ private:
|
|||
void visit_edges(Visitor& visitor) override
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(parse_error);
|
||||
visitor.visit(error_to_rethrow);
|
||||
visitor.visit(perform_fetch);
|
||||
visitor.visit(fetch_client);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue