mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
refactor: propagate CanGc arguments through callers (#35591)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
parent
02199520f2
commit
b0b0289014
74 changed files with 403 additions and 275 deletions
|
@ -1168,7 +1168,7 @@ unsafe fn throw_security_error(cx: *mut JSContext, realm: InRealm) -> bool {
|
|||
if !JS_IsExceptionPending(cx) {
|
||||
let safe_context = SafeJSContext::from_ptr(cx);
|
||||
let global = GlobalScope::from_context(cx, realm);
|
||||
throw_dom_exception(safe_context, &global, Error::Security);
|
||||
throw_dom_exception(safe_context, &global, Error::Security, CanGc::note());
|
||||
}
|
||||
false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue