mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
b0eda70edf
12 changed files with 79 additions and 59 deletions
|
|
@ -545,6 +545,11 @@ ReadStructuredClone(JSContext* cx, JSStructuredCloneData& data,
|
|||
JS::StructuredCloneScope scope, MutableHandleValue vp,
|
||||
const JSStructuredCloneCallbacks* cb, void* cbClosure)
|
||||
{
|
||||
if (data.Size() % 8) {
|
||||
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr,
|
||||
JSMSG_SC_BAD_SERIALIZED_DATA, "misaligned");
|
||||
return false;
|
||||
}
|
||||
SCInput in(cx, data);
|
||||
JSStructuredCloneReader r(in, scope, cb, cbClosure);
|
||||
return r.read(vp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue