Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

be explicit about global Date and fix a typo

  • Loading branch information...
commit 8c908c0c5578b3cf60d4e675b2b0d90e351d7a0a 1 parent 53bf5c8
@austinbv authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/timers.js
View
4 lib/timers.js
@@ -26,8 +26,8 @@ var assert = require('assert').ok;
// Timeout values > TIMEOUT_MAX are set to 1.
var TIMEOUT_MAX = 2147483647; // 2^31-1
-//Hold reference to the global date so if stubbed the times still work
-var Date = this.Date;
+//Hold reference to the global date so if stubbed the timers still work
+var Date = global.Date;
var debug;
if (process.env.NODE_DEBUG && /timer/.test(process.env.NODE_DEBUG)) {
Please sign in to comment.
Something went wrong with that request. Please try again.