douglascrockford/JSON-js — pull request #64 by jagi (2014-12-05 11:34:31+00:00)
Title: toJSON polyfill for Chrome browser

There is an error in line https://github.com/meteor/meteor/blob/devel/packages/json/json2.js#L174. It checks if Date.prototype.toJSON is function. If it doesn't it sets toJSON function not only for Date prototype but also for String, Number and Boolean prototypes. However if Date.prototype.toJSON is function what is true in Chrome browser it doesn't set toJSON functions for other objects. And those objects (String, Number, Boolean) doesn't have toJSON functions in Chrome. So they are never set.