Reviver for JSON.parse that restores function members serialized by encodeFunctions.
Only use this with data from a trusted source, because function sources are executed via the Function constructor.
Note: the revived function is created from source text, so closures/bindings from the original function are not preserved.
Reviver for JSON.parse that restores function members serialized by encodeFunctions.
Only use this with data from a trusted source, because function sources are executed via the Function constructor.
Note: the revived function is created from source text, so closures/bindings from the original function are not preserved.