mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
make report_pending_exception safe and adjust callers (#35351)
Signed-off-by: Nolen Scaife <nolen@scaife.org>
This commit is contained in:
parent
827012fc08
commit
df73d02932
8 changed files with 42 additions and 44 deletions
|
@ -187,11 +187,10 @@ fn create_html_element(
|
|||
|
||||
// Substep 1. Report exception for definition’s constructor’s corresponding
|
||||
// JavaScript object’s associated realm’s global object.
|
||||
unsafe {
|
||||
let ar = enter_realm(&*global);
|
||||
throw_dom_exception(cx, &global, error);
|
||||
report_pending_exception(*cx, true, InRealm::Entered(&ar), can_gc);
|
||||
}
|
||||
|
||||
let ar = enter_realm(&*global);
|
||||
throw_dom_exception(cx, &global, error);
|
||||
report_pending_exception(cx, true, InRealm::Entered(&ar), can_gc);
|
||||
|
||||
// Substep 2. Set result to a new element that implements the HTMLUnknownElement interface,
|
||||
// with no attributes, namespace set to the HTML namespace, namespace prefix set to prefix,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue