Permalink
Browse files

Treat dates as UTC strings

  • Loading branch information...
1 parent bbfa1f1 commit 54a8d88e35827d9d2fc835e33449f516657ea6b3 @isaacs committed Nov 15, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 assert.js
View
@@ -322,8 +322,9 @@ function stringify (a) {
keys.push(val["!"] || val.name || key || "<root>")
if (typeof val === "function") {
return val.toString().split(/\n/)[0]
+ } else if (val.toUTCString) {
+ return val.toUTCString()
}
- var proto = Object.getPrototypeOf(val)
}
return val
}})())

0 comments on commit 54a8d88

Please sign in to comment.