mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1234177 - check to see if mFunctions.append returned error. r=bholley
DONTBUILD because this is a backout/reland to fix author info.
This commit is contained in:
parent
2665fa7036
commit
da7b175556
@ -205,7 +205,8 @@ public:
|
||||
|
||||
if (JS::IsCallable(aObj)) {
|
||||
if (mOptions->cloneFunctions) {
|
||||
mFunctions.append(aObj);
|
||||
if (!mFunctions.append(aObj))
|
||||
return false;
|
||||
return JS_WriteUint32Pair(aWriter, SCTAG_FUNCTION, mFunctions.length() - 1);
|
||||
} else {
|
||||
JS_ReportError(aCx, "Permission denied to pass a Function via structured clone");
|
||||
|
Loading…
Reference in New Issue
Block a user