aboutsummaryrefslogtreecommitdiff
path: root/src/js/node/diagnostics_channel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/node/diagnostics_channel.ts')
-rw-r--r--src/js/node/diagnostics_channel.ts35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/js/node/diagnostics_channel.ts b/src/js/node/diagnostics_channel.ts
new file mode 100644
index 000000000..45816bdc4
--- /dev/null
+++ b/src/js/node/diagnostics_channel.ts
@@ -0,0 +1,35 @@
+// Hardcoded module "node:diagnostics_channel"
+// This is a stub! None of this is actually implemented yet.
+
+const { hideFromStack, throwNotImplemented } = require("$shared");
+
+class Channel {
+ constructor(name) {
+ throwNotImplemented("node:diagnostics_channel", 2688);
+ }
+}
+
+function channel() {
+ throwNotImplemented("node:diagnostics_channel", 2688);
+}
+
+function hasSubscribers() {
+ throwNotImplemented("node:diagnostics_channel", 2688);
+}
+function subscribe() {
+ throwNotImplemented("node:diagnostics_channel", 2688);
+}
+
+function unsubscribe() {
+ throwNotImplemented("node:diagnostics_channel", 2688);
+}
+
+export default {
+ channel,
+ hasSubscribers,
+ subscribe,
+ unsubscribe,
+ Channel,
+};
+
+hideFromStack([channel, hasSubscribers, subscribe, unsubscribe, Channel]);