Skip to content

Commit 7beef40

Browse files
committed
fix recursive dependencies
1 parent 1e7d50e commit 7beef40

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

src/workerd/io/BUILD.bazel

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,16 @@ wd_cc_library(
139139
name = "worker-modules",
140140
srcs = ["worker-modules.c++"],
141141
hdrs = ["worker-modules.h"],
142+
implementation_deps = [
143+
"//src/pyodide:pyodide_static",
144+
"//src/workerd/api:pyodide",
145+
"//src/workerd/api/node",
146+
],
142147
visibility = ["//visibility:public"],
143148
deps = [
144149
":io",
145-
"//src/pyodide:pyodide_static",
146150
"//src/pyodide:python-entrypoint",
147-
"//src/workerd/api:pyodide",
148151
"//src/workerd/api:rtti",
149-
"//src/workerd/api/node",
150152
"//src/workerd/jsg",
151153
],
152154
)

src/workerd/jsg/iterator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
#pragma once
66

7+
#include <workerd/jsg/jsg.h>
78
#include <workerd/jsg/memory.h>
8-
#include <workerd/jsg/promise.h>
99
#include <workerd/jsg/struct.h>
1010

1111
#include <concepts>

src/workerd/jsg/jsg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3003,6 +3003,7 @@ inline Value SelfRef::asValue(Lock& js) const {
30033003

30043004
// clang-format off
30053005
// These includes are needed for the JSG type glue macros to work.
3006+
#include "promise.h"
30063007
#include "modules.h"
30073008
#include "resource.h"
30083009
#include "jsvalue.h"

src/workerd/jsg/modules.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <workerd/jsg/function.h>
88
#include <workerd/jsg/modules.capnp.h>
99
#include <workerd/jsg/observer.h>
10-
#include <workerd/jsg/promise.h>
1110
#include <workerd/util/sentry.h>
1211
#include <workerd/util/thread-scopes.h>
1312

@@ -18,6 +17,9 @@
1817

1918
namespace workerd::jsg {
2019

20+
template <typename T>
21+
class Promise;
22+
2123
enum class InstantiateModuleOptions {
2224
// Allows pending top-level await in the module when evaluated. Will cause
2325
// the microtask queue to be drained once in an attempt to resolve those.

0 commit comments

Comments
 (0)