18#ifndef INCLUDED_SCRIPTINTERFACE_STRUCTUREDCLONE
19#define INCLUDED_SCRIPTINTERFACE_STRUCTUREDCLONE
25class JSStructuredCloneData;
Abstraction around a SpiderMonkey JS::Realm.
Definition: ScriptInterface.h:72
Spidermonkey maintains some 'local' state via the JSContext* object.
Definition: ScriptRequest.h:60
Wraps SM APIs for manipulating JS objects.
Definition: JSON.h:35
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
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
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