mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -2549,7 +2549,7 @@ impl GlobalScope {
|
|||
|
||||
if compiled_script.is_null() {
|
||||
debug!("error compiling Dom string");
|
||||
report_pending_exception(*cx, true, InRealm::Entered(&ar), can_gc);
|
||||
report_pending_exception(cx, true, InRealm::Entered(&ar), can_gc);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
@ -2598,7 +2598,7 @@ impl GlobalScope {
|
|||
|
||||
if !result {
|
||||
debug!("error evaluating Dom string");
|
||||
report_pending_exception(*cx, true, InRealm::Entered(&ar), can_gc);
|
||||
report_pending_exception(cx, true, InRealm::Entered(&ar), can_gc);
|
||||
}
|
||||
|
||||
maybe_resume_unwind();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue