Skip to content

Commit 20a68e9

Browse files
committed
timers: give Timeouts a constructor name
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
1 parent ae24d05 commit 20a68e9

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
@@ -430,7 +430,7 @@ exports.clearInterval = function(timer) {
430430
};
431431

432432

433-
const Timeout = function(after) {
433+
function Timeout(after) {
434434
this._called = false;
435435
this._idleTimeout = after;
436436
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 null._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)