aboutsummaryrefslogtreecommitdiff
path: root/src/js/out/modules/node/diagnostics_channel.js
blob: f4d9d990c78fa4451bbbba3096c8787c2bbf61ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
function throwNotImplemented(feature, issue) {
  throw hideFromStack(throwNotImplemented), new NotImplementedError(feature, issue);
}
function hideFromStack(...fns) {
  for (let fn of fns)
    Object.defineProperty(fn, "name", {
      value: "::bunternal::"
    });
}

class NotImplementedError extends Error {
  code;
  constructor(feature, issue) {
    super(feature + " is not yet implemented in Bun." + (issue ? " Track the status & thumbs up the issue: https://github.com/oven-sh/bun/issues/" + issue : ""));
    this.name = "NotImplementedError", this.code = "ERR_NOT_IMPLEMENTED", hideFromStack(NotImplementedError);
  }
}

// src/js/node/diagnostics_channel.js
var channel = function() {
  throwNotImplemented("node:diagnostics_channel", 2688);
}, hasSubscribers = function() {
  throwNotImplemented("node:diagnostics_channel", 2688);
}, subscribe = function() {
  throwNotImplemented("node:diagnostics_channel", 2688);
}, unsubscribe = function() {
  throwNotImplemented("node:diagnostics_channel", 2688);
};

class Channel {
  constructor(name) {
    throwNotImplemented("node:diagnostics_channel", 2688);
  }
}
var defaultObject = {
  channel,
  hasSubscribers,
  subscribe,
  unsubscribe,
  Channel,
  [Symbol.for("CommonJS")]: 0
};
hideFromStack([channel, hasSubscribers, subscribe, unsubscribe, Channel]);
export {
  unsubscribe,
  subscribe,
  hasSubscribers,
  defaultObject as default,
  channel,
  Channel
};