diff options
Diffstat (limited to 'src/js/out/modules_dev/node/diagnostics_channel.js')
-rw-r--r-- | src/js/out/modules_dev/node/diagnostics_channel.js | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/js/out/modules_dev/node/diagnostics_channel.js b/src/js/out/modules_dev/node/diagnostics_channel.js deleted file mode 100644 index e3565b0d9..000000000 --- a/src/js/out/modules_dev/node/diagnostics_channel.js +++ /dev/null @@ -1,53 +0,0 @@ -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 -}; - -//# debugId=562132B77CBFFF4C64756e2164756e21 |