Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit 7a85bcd

Browse files
committed
Remove FromJSValConvertible implementation for HandleValue
1 parent 4ca2682 commit 7a85bcd

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/conversions.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -185,20 +185,6 @@ impl ToJSValConvertible for () {
185185
}
186186
}
187187

188-
impl FromJSValConvertible for HandleValue {
189-
type Config = ();
190-
#[inline]
191-
unsafe fn from_jsval(cx: *mut JSContext,
192-
value: HandleValue,
193-
_option: ())
194-
-> Result<ConversionResult<HandleValue>, ()> {
195-
if value.is_object() {
196-
AssertSameCompartment(cx, value.to_object());
197-
}
198-
Ok(ConversionResult::Success(value))
199-
}
200-
}
201-
202188
impl FromJSValConvertible for JSVal {
203189
type Config = ();
204190
unsafe fn from_jsval(_cx: *mut JSContext,

0 commit comments

Comments
 (0)