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> VM::resolve_imported_module(ScriptOrMod [&](Empty) -> String { return "."; }, - [&](auto* script_or_module) { + [&](auto& script_or_module) { if constexpr (IsSame) { return String::formatted("Script @ {}", script_or_module); }