xk/JASON — Issue #6: JASON.parse(JASON.stringify(JASON)) fails
Author: xk
Created: 2012-02-27 16:23:17+00:00
State: open

1.- JASON does not walk the prototype chain
2.- JASON can't capture free vars, so any references to free vars will throw a reference error.

For JASON to serialize successfully an object and its methods, all the references must be own properties of the object, or built-ins, not free vars in a closure.