mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
timers: give Timeouts a constructor name
Refs: https://github.com/nodejs/node/pull/5792 PR-URL: https://github.com/nodejs/node/pull/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> Conflicts: test/message/timeout_throw.out
This commit is contained in:
1 parent
ae24d05451
commit
20a68e9eef
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -430,7 +430,7 @@ exports.clearInterval = function(timer) {
|
||||
};
|
||||
|
||||
|
||||
const Timeout = function(after) {
|
||||
function Timeout(after) {
|
||||
this._called = false;
|
||||
this._idleTimeout = after;
|
||||
this._idlePrev = this;
|
||||
|
||||
@@ -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:*:*)
|
||||
Reference in new issue
Block a user