From 7ad4702cbf919f579689032d0ce85611ba465987 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 7 Feb 2022 19:58:50 +0100 Subject: LibJS: Unbreak build with JS_MODULE_DEBUG Thanks to David for noticing this! :^) --- Userland/Libraries/LibJS/Runtime/VM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3