summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/domain.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-09-12 01:25:46 +0100
committerGitHub <noreply@github.com>2024-09-12 02:25:46 +0200
commit3a3837545ce6f585f718069cc05d96f765a05d3f (patch)
tree4b5df24473636a405f096b2b26aa32983440c2f4 /ext/node/polyfills/domain.ts
parent3f6605d123ea5c07c7e0bdb7fd5b06676aa8c8e0 (diff)
feat(ext/node): export missing symbols from domain, puncode, repl, tls (#25585)
Diffstat (limited to 'ext/node/polyfills/domain.ts')
-rw-r--r--ext/node/polyfills/domain.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/node/polyfills/domain.ts b/ext/node/polyfills/domain.ts
index f9c99f725..709377996 100644
--- a/ext/node/polyfills/domain.ts
+++ b/ext/node/polyfills/domain.ts
@@ -15,9 +15,20 @@ function emitError(e) {
this.emit("error", e);
}
+// TODO(bartlomieju): maybe use this one
+// deno-lint-ignore prefer-const
+let stack = [];
+export const _stack = stack;
+export const active = null;
+
export function create() {
return new Domain();
}
+
+export function createDomain() {
+ return new Domain();
+}
+
export class Domain extends EventEmitter {
#handler;
@@ -85,6 +96,9 @@ export class Domain extends EventEmitter {
}
}
export default {
+ _stack,
create,
+ active,
+ createDomain,
Domain,
};