mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Use safe JSContext when possible in interface.rs
This commit is contained in:
parent
8b070fef52
commit
78034a90d0
6 changed files with 194 additions and 176 deletions
|
@ -1090,12 +1090,11 @@ impl TestBinding {
|
|||
pub fn FuncControlledStaticMethodEnabled(_: &GlobalScope) {}
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
impl TestBinding {
|
||||
pub unsafe fn condition_satisfied(_: *mut JSContext, _: HandleObject) -> bool {
|
||||
pub fn condition_satisfied(_: SafeJSContext, _: HandleObject) -> bool {
|
||||
true
|
||||
}
|
||||
pub unsafe fn condition_unsatisfied(_: *mut JSContext, _: HandleObject) -> bool {
|
||||
pub fn condition_unsatisfied(_: SafeJSContext, _: HandleObject) -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue