Currently it's just stringifying the function - I should really be using Function.prototype.toString and restoring the function properties though (since a function is just another object).
Edit: Also for RegExp.
Currently it's just stringifying the function - I should really be using Function.prototype.toString and restoring the function properties though (since a function is just another object).
Edit: Also for RegExp.