Skip to content

Commit 4fe02e2

Browse files
committed
timers: give Timeouts a constructor name
Refs: #5792 PR-URL: #5793 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
1 parent a76cb4d commit 4fe02e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/timers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ exports.clearInterval = function(timer) {
439439
};
440440

441441

442-
const Timeout = function(after) {
442+
function Timeout(after) {
443443
this._called = false;
444444
this._idleTimeout = after;
445445
this._idlePrev = this;

test/message/timeout_throw.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
undefined_reference_error_maker;
33
^
44
ReferenceError: undefined_reference_error_maker is not defined
5-
at ._onTimeout (*test*message*timeout_throw.js:*:*)
5+
at Timeout._onTimeout (*test*message*timeout_throw.js:*:*)
66
at tryOnTimeout (timers.js:*:*)
77
at Timer.listOnTimeout (timers.js:*:*)

0 commit comments

Comments
 (0)