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.
This commit is contained in:
Timothy Flynn 2023-01-06 13:15:29 -05:00 committed by Linus Groh
parent 425c168ded
commit 49b24b0968
Notes: sideshowbarker 2024-07-17 23:07:41 +09:00
2 changed files with 1 additions and 1 deletions

View file

@ -36,6 +36,7 @@
#include <LibJS/Runtime/StringObject.h>
#include <LibJS/Runtime/StringPrototype.h>
#include <LibJS/Runtime/SymbolObject.h>
#include <LibJS/Runtime/Utf16String.h>
#include <LibJS/Runtime/VM.h>
#include <LibJS/Runtime/Value.h>
#include <math.h>

View file

@ -19,7 +19,6 @@
#include <LibJS/Forward.h>
#include <LibJS/Heap/GCPtr.h>
#include <LibJS/Runtime/BigInt.h>
#include <LibJS/Runtime/Utf16String.h>
#include <math.h>
// 2 ** 53 - 1