mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibJS+LibWeb: More bringing module loading closer to spec
In particular, this patch removes three host hooks on JS::VM in favor of the new JS-side module loading stuff.
This commit is contained in:
Notes:
sideshowbarker
2024-07-16 23:57:20 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8b7d27b349 Pull-request: https://github.com/SerenityOS/serenity/pull/21967 Issue: https://github.com/SerenityOS/serenity/issues/21737 Issue: https://github.com/SerenityOS/serenity/issues/21899
@@ -194,7 +194,7 @@ int main(int argc, char** argv)
|
||||
|
||||
if (!g_vm) {
|
||||
g_vm = MUST(JS::VM::create());
|
||||
g_vm->enable_default_host_import_module_dynamically_hook();
|
||||
g_vm->set_dynamic_imports_allowed(true);
|
||||
}
|
||||
|
||||
Test::JS::TestRunner test_runner(test_root, common_path, print_times, print_progress, print_json, per_file);
|
||||
|
||||
Reference in New Issue
Block a user