diff options
Diffstat (limited to 'ext/node/polyfills/domain.ts')
-rw-r--r-- | ext/node/polyfills/domain.ts | 14 |
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, }; |