diff --git a/lib/timers.js b/lib/timers.js index 99010d424a..bec1d2e218 100644 --- a/lib/timers.js +++ b/lib/timers.js @@ -439,7 +439,7 @@ exports.clearInterval = function(timer) { }; -const Timeout = function(after) { +function Timeout(after) { this._called = false; this._idleTimeout = after; this._idlePrev = this; diff --git a/test/message/timeout_throw.out b/test/message/timeout_throw.out index 1e545a1db1..2a049a157a 100644 --- a/test/message/timeout_throw.out +++ b/test/message/timeout_throw.out @@ -2,6 +2,6 @@ undefined_reference_error_maker; ^ ReferenceError: undefined_reference_error_maker is not defined - at ._onTimeout (*test*message*timeout_throw.js:*:*) + at Timeout._onTimeout (*test*message*timeout_throw.js:*:*) at tryOnTimeout (timers.js:*:*) at Timer.listOnTimeout (timers.js:*:*)