Browse Source

LibJS: Make Script.h not include AST.h

Andreas Kling 2 years ago
parent
commit
65e7c58990

+ 1 - 0
Userland/Libraries/LibJS/Forward.h

@@ -184,6 +184,7 @@ class ObjectEnvironment;
 class Parser;
 struct ParserError;
 class PrimitiveString;
+class Program;
 class PromiseCapability;
 class PromiseReaction;
 class PropertyAttributes;

+ 1 - 0
Userland/Libraries/LibJS/Runtime/RegExpLegacyStaticProperties.cpp

@@ -4,6 +4,7 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
+#include <AK/Utf16View.h>
 #include <LibJS/Runtime/RegExpConstructor.h>
 #include <LibJS/Runtime/RegExpLegacyStaticProperties.h>
 #include <LibJS/Runtime/VM.h>

+ 0 - 1
Userland/Libraries/LibJS/Script.h

@@ -7,7 +7,6 @@
 #pragma once
 
 #include <AK/NonnullRefPtr.h>
-#include <LibJS/AST.h>
 #include <LibJS/Heap/GCPtr.h>
 #include <LibJS/Heap/Handle.h>
 #include <LibJS/ParserError.h>