Skip to content

Commit

Permalink
timers: give Timeouts a constructor name
Browse files Browse the repository at this point in the history
Refs: #5792
PR-URL: #5793
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>

Conflicts:
	test/message/timeout_throw.out
  • Loading branch information
Fishrock123 committed Mar 22, 2016
1 parent ae24d05 commit 20a68e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ exports.clearInterval = function(timer) {
};


const Timeout = function(after) {
function Timeout(after) {
this._called = false;
this._idleTimeout = after;
this._idlePrev = this;
Expand Down
2 changes: 1 addition & 1 deletion test/message/timeout_throw.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
undefined_reference_error_maker;
^
ReferenceError: undefined_reference_error_maker is not defined
at null._onTimeout (*test*message*timeout_throw.js:*:*)
at Timeout._onTimeout (*test*message*timeout_throw.js:*:*)
at tryOnTimeout (timers.js:*:*)
at Timer.listOnTimeout (timers.js:*:*)

0 comments on commit 20a68e9

Please sign in to comment.