diff options
Diffstat (limited to 'Userland/Utilities/js.cpp')
-rw-r--r-- | Userland/Utilities/js.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp index 40b960e1ab..ea486e09b9 100644 --- a/Userland/Utilities/js.cpp +++ b/Userland/Utilities/js.cpp @@ -1290,6 +1290,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) bool syntax_highlight = !disable_syntax_highlight; vm = JS::VM::create(); + vm->enable_default_host_import_module_dynamically_hook(); + // NOTE: These will print out both warnings when using something like Promise.reject().catch(...) - // which is, as far as I can tell, correct - a promise is created, rejected without handler, and a // handler then attached to it. The Node.js REPL doesn't warn in this case, so it's something we |