summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-07 19:58:50 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-07 19:59:21 +0100
commit7ad4702cbf919f579689032d0ce85611ba465987 (patch)
tree3ae7c3c681d4f2f98e1258ccf52759b537bdecb4
parent11375b35e8272eb45eaa4751591fb0cd86552303 (diff)
downloadserenity-7ad4702cbf919f579689032d0ce85611ba465987.zip
LibJS: Unbreak build with JS_MODULE_DEBUG
Thanks to David for noticing this! :^)
-rw-r--r--Userland/Libraries/LibJS/Runtime/VM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/VM.cpp b/Userland/Libraries/LibJS/Runtime/VM.cpp
index 1444a31974..91b04e9d05 100644
--- a/Userland/Libraries/LibJS/Runtime/VM.cpp
+++ b/Userland/Libraries/LibJS/Runtime/VM.cpp
@@ -848,7 +848,7 @@ ThrowCompletionOr<NonnullRefPtr<Module>> VM::resolve_imported_module(ScriptOrMod
[&](Empty) -> String {
return ".";
},
- [&](auto* script_or_module) {
+ [&](auto& script_or_module) {
if constexpr (IsSame<Script*, decltype(script_or_module)>) {
return String::formatted("Script @ {}", script_or_module);
}