Skip to content

Commit eff64e1

Browse files
committed
fixup: do not set domain in constructor
1 parent a77330e commit eff64e1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/timers.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,6 @@ function Timeout(callback, after, args, isRepeat) {
565565
this._timerArgs = args;
566566
this._repeat = isRepeat ? after : null;
567567
this._destroyed = false;
568-
if (process.domain)
569-
this.domain = process.domain;
570568

571569
this[async_id_symbol] = ++async_id_fields[kAsyncIdCounter];
572570
this[trigger_async_id_symbol] = initTriggerId();
@@ -793,8 +791,6 @@ function Immediate(callback, args) {
793791
this._onImmediate = callback;
794792
this._argv = args;
795793
this._destroyed = false;
796-
if (process.domain)
797-
this.domain = process.domain;
798794

799795
this[async_id_symbol] = ++async_id_fields[kAsyncIdCounter];
800796
this[trigger_async_id_symbol] = initTriggerId();

0 commit comments

Comments
 (0)