marcuswestin / store.js

Cross-browser storage for all use cases, used across the web.
MIT License
14.01k stars 1.33k forks source link

Can't set a method in any object #253

Open Mattwmaster58 opened 6 years ago

Mattwmaster58 commented 6 years ago

For example: store.set("ex", {foo:"bar", bar: function(){console.log("foo")}}) "ex" is set to {"foo":"bar"} instead of {foo:"bar", bar: function(){console.log("foo")}}`

PS ECMAScript 2015 shorthand syntax isn't supported either.