We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d533a17 commit b995764Copy full SHA for b995764
src/repl/friendlyprinter.js
@@ -255,7 +255,9 @@ window.cls.FriendlyPrinter.prototype = new function()
255
return [
256
DATE,
257
1, // expandable inline object (booleans are returned as string)
258
- new Date(item.getTime() - item.getTimezoneOffset() * 1000 * 60).toISOString().replace('Z','')
+ !isNaN(item.getTime())
259
+ ? new Date(item.getTime() - item.getTimezoneOffset() * 1000 * 60).toISOString().replace('Z','')
260
+ : item.toString()
261
];
262
}
263
else if (class_ == "[object Function]")
0 commit comments