Skip to content

Commit

Permalink
fixup: do not set domain in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
apapirovski committed Nov 26, 2017
1 parent a77330e commit eff64e1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,6 @@ function Timeout(callback, after, args, isRepeat) {
this._timerArgs = args;
this._repeat = isRepeat ? after : null;
this._destroyed = false;
if (process.domain)
this.domain = process.domain;

this[async_id_symbol] = ++async_id_fields[kAsyncIdCounter];
this[trigger_async_id_symbol] = initTriggerId();
Expand Down Expand Up @@ -793,8 +791,6 @@ function Immediate(callback, args) {
this._onImmediate = callback;
this._argv = args;
this._destroyed = false;
if (process.domain)
this.domain = process.domain;

this[async_id_symbol] = ++async_id_fields[kAsyncIdCounter];
this[trigger_async_id_symbol] = initTriggerId();
Expand Down

0 comments on commit eff64e1

Please sign in to comment.