Skip to content

Commit 70bea86

Browse files
committed
remove experimental flag from http and https modules
1 parent 0bf8308 commit 70bea86

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/workerd/api/node/node.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ bool isNodeJsCompatEnabled(auto featureFlags) {
6565
return featureFlags.getNodeJsCompat() || featureFlags.getNodeJsCompatV2();
6666
}
6767

68-
bool isExperimentalNodeJsCompatModule(kj::StringPtr name);
68+
constexpr bool isExperimentalNodeJsCompatModule(kj::StringPtr name) {
69+
return name == "node:fs"_kj;
70+
}
6971

7072
template <class Registry>
7173
void registerNodeJsCompatModules(Registry& registry, auto featureFlags) {

src/workerd/api/node/util.c++

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212

1313
namespace workerd::api::node {
1414

15-
bool isExperimentalNodeJsCompatModule(kj::StringPtr name) {
16-
return name == "node:fs"_kj || name == "node:http"_kj || name == "node:_http_common"_kj ||
17-
name == "node:_http_outgoing"_kj || name == "node:_http_client"_kj ||
18-
name == "node:_http_incoming"_kj || name == "node:_http_agent"_kj;
19-
}
20-
2115
MIMEParams::MIMEParams(kj::Maybe<MimeType&> mimeType): mimeType(mimeType) {}
2216

2317
// Oddly, Node.js allows creating MIMEParams directly but it's not actually

0 commit comments

Comments
 (0)