Browse Source

LibJS: Make AsyncGenerator not include AsyncGeneratorRequest.h

Andreas Kling 2 years ago
parent
commit
9ff02ad42c

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

@@ -147,6 +147,7 @@ namespace JS {
 
 class ASTNode;
 class Accessor;
+struct AsyncGeneratorRequest;
 class BigInt;
 class BoundFunction;
 class Cell;

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

@@ -6,6 +6,7 @@
 
 #include <LibJS/Runtime/AsyncGenerator.h>
 #include <LibJS/Runtime/AsyncGeneratorPrototype.h>
+#include <LibJS/Runtime/AsyncGeneratorRequest.h>
 #include <LibJS/Runtime/GlobalObject.h>
 
 namespace JS {

+ 0 - 1
Userland/Libraries/LibJS/Runtime/AsyncGenerator.h

@@ -7,7 +7,6 @@
 #pragma once
 
 #include <AK/Variant.h>
-#include <LibJS/Runtime/AsyncGeneratorRequest.h>
 #include <LibJS/Runtime/ExecutionContext.h>
 #include <LibJS/Runtime/Object.h>