mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -499,7 +499,12 @@ impl WorkerGlobalScope {
|
|||
println!("evaluate_script failed");
|
||||
unsafe {
|
||||
let ar = enter_realm(self);
|
||||
report_pending_exception(cx, true, InRealm::Entered(&ar), can_gc);
|
||||
report_pending_exception(
|
||||
JSContext::from_ptr(cx),
|
||||
true,
|
||||
InRealm::Entered(&ar),
|
||||
can_gc,
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue