mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use the conversion traits from js.
This commit is contained in:
parent
acb24e80b8
commit
6d2ae85c1f
15 changed files with 285 additions and 647 deletions
|
@ -574,8 +574,9 @@ impl WindowMethods for Window {
|
|||
breakpoint();
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
fn WebdriverCallback(&self, cx: *mut JSContext, val: HandleValue) {
|
||||
let rv = jsval_to_webdriver(cx, val);
|
||||
let rv = unsafe { jsval_to_webdriver(cx, val) };
|
||||
let opt_chan = self.webdriver_script_chan.borrow_mut().take();
|
||||
if let Some(chan) = opt_chan {
|
||||
chan.send(rv).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue