File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff 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
7072template <class Registry >
7173void registerNodeJsCompatModules (Registry& registry, auto featureFlags) {
Original file line number Diff line number Diff line change 1212
1313namespace 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-
2115MIMEParams::MIMEParams (kj::Maybe<MimeType&> mimeType): mimeType(mimeType) {}
2216
2317// Oddly, Node.js allows creating MIMEParams directly but it's not actually
You can’t perform that action at this time.
0 commit comments