addyosmani / memoize.js

A faster JavaScript memoizer
http://addyosmani.com
143 stars 19 forks source link

IE8: "TypeError: 'JSON' is undefined" #6

Closed JamieMason closed 7 years ago

JamieMason commented 13 years ago

Memoize currently has a dependency on JSON.stringify

JamieMason commented 13 years ago

These browsers will also be affected: http://caniuse.com/json

addyosmani commented 13 years ago

I'll have a look around for compact JSON.stringify implementations (or alternatives) which aren't dependant on the entire JSON/JSON2 libraries. At least before we consider writing something to account for this behaviour.

Initially reviewing http://www.thomasfrank.se/json_stringify_revisited.html