mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 07:17:32 +09:00
Bug 1411415.
This commit is contained in:
parent
8ffcc15d3f
commit
66bf4fa8f9
10 changed files with 91 additions and 33 deletions
|
|
@ -1785,9 +1785,12 @@ CallMethodHelper::ConvertIndependentParam(uint8_t i)
|
|||
// indirectly, regardless of in/out-ness.
|
||||
if (type_tag == nsXPTType::T_JSVAL) {
|
||||
// Root the value.
|
||||
dp->val.j.setUndefined();
|
||||
if (!js::AddRawValueRoot(mCallContext, &dp->val.j, "XPCWrappedNative::CallMethod param"))
|
||||
dp->val.j.asValueRef().setUndefined();
|
||||
if (!js::AddRawValueRoot(mCallContext, &dp->val.j.asValueRef(),
|
||||
"XPCWrappedNative::CallMethod param"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Flag cleanup for anything that isn't self-contained.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue