diff options
author | marmeladema <xademax@gmail.com> | 2019-07-27 18:52:12 +0100 |
---|---|---|
committer | marmeladema <xademax@gmail.com> | 2019-08-09 00:43:24 +0100 |
commit | 78034a90d07470d50202b01457c4e18cf7c305fb (patch) | |
tree | e0c963feb5a0b85fc1b2ca4331c4c430edf242a9 /components/script/dom/testbinding.rs | |
parent | 8b070fef526bf8c1470c9c82ae2431067b2da4ff (diff) | |
download | servo-78034a90d07470d50202b01457c4e18cf7c305fb.tar.gz servo-78034a90d07470d50202b01457c4e18cf7c305fb.zip |
Use safe JSContext when possible in interface.rs
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r-- | components/script/dom/testbinding.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs index bbbb652280e..607c97085f1 100644 --- a/components/script/dom/testbinding.rs +++ b/components/script/dom/testbinding.rs @@ -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 } } |