aboutsummaryrefslogtreecommitdiff
path: root/src/js/out/modules_dev/node/cluster.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/out/modules_dev/node/cluster.js')
-rw-r--r--src/js/out/modules_dev/node/cluster.js65
1 files changed, 0 insertions, 65 deletions
diff --git a/src/js/out/modules_dev/node/cluster.js b/src/js/out/modules_dev/node/cluster.js
deleted file mode 100644
index 30cf3be92..000000000
--- a/src/js/out/modules_dev/node/cluster.js
+++ /dev/null
@@ -1,65 +0,0 @@
-var EventEmitter = import.meta.require("node:events");
-
-// src/js/shared.ts
-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/cluster.ts
-var SCHED_NONE = 0, SCHED_RR = 1, Worker, schedulingPolicy = 2, isWorker = !1, isPrimary = !0, isMaster = !0, cluster;
-Worker = function Worker2() {
- throwNotImplemented("node:cluster Worker", 2428);
-};
-
-class Cluster extends EventEmitter {
- constructor() {
- super(...arguments);
- }
- static isWorker = !1;
- static isPrimary = !0;
- static isMaster = !0;
- static Worker = Worker;
- fork() {
- throwNotImplemented("node:cluster", 2428);
- }
- disconnect() {
- throwNotImplemented("node:cluster", 2428);
- }
- setupMaster() {
- throwNotImplemented("node:cluster", 2428);
- }
- settings = {};
- workers = {};
- SCHED_NONE = 0;
- SCHED_RR = 1;
- schedulingPolicy = 2;
- [Symbol.for("CommonJS")] = 0;
-}
-cluster = new Cluster;
-export {
- schedulingPolicy,
- isWorker,
- isPrimary,
- isMaster,
- cluster as default,
- cluster,
- Worker,
- SCHED_RR,
- SCHED_NONE
-};
-
-//# debugId=58641C31B94079F464756e2164756e21