mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Bug 1351979 - Change CustomElementRegistry::Define code to properly propagate out JS exceptions;
Tag UXP Issue #1344
This commit is contained in:
parent
bde53294f8
commit
a176a0e5f2
1 changed files with 1 additions and 1 deletions
|
|
@ -745,7 +745,7 @@ CustomElementRegistry::Define(const nsAString& aName,
|
|||
// here.
|
||||
JS::RootedValue rootedv(cx, JS::ObjectValue(*constructorProtoUnwrapped));
|
||||
if (!JS_WrapValue(cx, &rootedv) || !callbacksHolder->Init(cx, rootedv)) {
|
||||
aRv.Throw(NS_ERROR_FAILURE);
|
||||
aRv.StealExceptionFromJSContext(cx);
|
||||
return;
|
||||
}
|
||||
} // Leave constructorProtoUnwrapped's compartment.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue