Permalink
Browse files

be explicit about global Date and fix a typo

  • Loading branch information...
1 parent 53bf5c8 commit 8c908c0c5578b3cf60d4e675b2b0d90e351d7a0a @austinbv committed Jul 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/timers.js
View
@@ -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)) {

0 comments on commit 8c908c0

Please sign in to comment.