18 #ifndef INCLUDED_SCRIPTINTERFACE_STRUCTUREDCLONE 19 #define INCLUDED_SCRIPTINTERFACE_STRUCTUREDCLONE 25 class JSStructuredCloneData;
61 #endif // INCLUDED_SCRIPTINTERFACE_STRUCTUREDCLONE JS::Value CloneValueFromOtherCompartment(const ScriptInterface &to, const ScriptInterface &from, JS::HandleValue val)
Construct a new value by cloning a value (possibly from a different Compartment). ...
Definition: StructuredClone.cpp:64
std::shared_ptr< JSStructuredCloneData > StructuredClone
Structured clones are a way to serialize 'simple' JS::Values into a buffer that can safely be passed ...
Definition: StructuredClone.h:36
JS::Value DeepCopy(const ScriptRequest &rq, JS::HandleValue val)
Clone a JS value, ensuring that changes to the result won't affect the original value.
Definition: StructuredClone.cpp:78
Wraps SM APIs for manipulating JS objects.
Definition: JSON.h:34
Config::Value_type Value
Definition: json_spirit_value.h:182
Abstraction around a SpiderMonkey JS::Realm.
Definition: ScriptInterface.h:71
void ReadStructuredClone(const ScriptRequest &rq, const StructuredClone &ptr, JS::MutableHandleValue ret)
Definition: StructuredClone.cpp:57
StructuredClone WriteStructuredClone(const ScriptRequest &rq, JS::HandleValue v)
Definition: StructuredClone.cpp:43
Spidermonkey maintains some 'local' state via the JSContext* object.
Definition: ScriptRequest.h:59