brianleroux/lawnchair

The memory adapter should store JSON-encoded strings

jimfulton opened this issue · 2 comments

Otherwise, you can get aliasing effects that you don't get with other adapters.

I just switched to the dom adapter for unit testing an application to avoid this problem.
That forced me to implement localStorage, as it's not provided by envjs 1.2.

(I'm running unit tests under python-spidermonkey and envjs 1.2.)

I'm sorry man but I don't understand???

Well, assuming it hasn't changed in the last 7 months....

When storing in other adapters, data are marshaled as json. The memory adapter stores objects directly. This can lead to aliasing effects that you don't have with other adapters.

I should have supplied a test case.