mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb: Fix assertion failure on telekom.de
The EntryType has three possible values: Fetching, Failed or ModuleScript. It is possible that we transition from Fetching to Failed as in #13.1. Change the assertion to include the failed scenario. Fixes: https://github.com/LadybirdBrowser/ladybird/issues/661
This commit is contained in:
parent
31eb0ed938
commit
319bb6353e
Notes:
sideshowbarker
2024-07-19 21:36:10 +09:00
Author: https://github.com/zecke 🔰
Commit: 319bb6353e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/704
1 changed files with 1 additions and 1 deletions
|
@ -721,7 +721,7 @@ void fetch_single_module_script(JS::Realm& realm,
|
|||
module_map.wait_for_change(realm.heap(), url, module_type, [on_complete, &realm](auto entry) -> void {
|
||||
HTML::queue_global_task(HTML::Task::Source::Networking, realm.global_object(), JS::create_heap_function(realm.heap(), [on_complete, entry] {
|
||||
// FIXME: This should run other steps, for now we just assume the script loaded.
|
||||
VERIFY(entry.type == ModuleMap::EntryType::ModuleScript);
|
||||
VERIFY(entry.type == ModuleMap::EntryType::ModuleScript || entry.type == ModuleMap::EntryType::Failed);
|
||||
|
||||
on_complete->function()(entry.module_script);
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue