From 49b24b096803d9339fa1c89834f30bda7b5970ff Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 6 Jan 2023 13:15:29 -0500 Subject: [PATCH] LibJS: Let Utf16String be forward-declared in Value.h It's only used as a template parameter, so let it be forward-declared. Otherwise, we aren't able to include Completion.h in Utf16String.h, as there would be a Utf16String -> Completion -> Value -> Utf16String include cycle. --- Userland/Libraries/LibJS/Runtime/Value.cpp | 1 + Userland/Libraries/LibJS/Runtime/Value.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Value.cpp b/Userland/Libraries/LibJS/Runtime/Value.cpp index 9ddc2f5d3a..ed93bb6c4e 100644 --- a/Userland/Libraries/LibJS/Runtime/Value.cpp +++ b/Userland/Libraries/LibJS/Runtime/Value.cpp @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include diff --git a/Userland/Libraries/LibJS/Runtime/Value.h b/Userland/Libraries/LibJS/Runtime/Value.h index abb1599f41..501bece326 100644 --- a/Userland/Libraries/LibJS/Runtime/Value.h +++ b/Userland/Libraries/LibJS/Runtime/Value.h @@ -19,7 +19,6 @@ #include #include #include -#include #include // 2 ** 53 - 1