mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
commit
03666f3105
1 changed files with 3 additions and 1 deletions
|
@ -37,9 +37,11 @@ pub fn handle_evaluate_js(page: &Rc<Page>, pipeline: PipelineId, eval: String, r
|
|||
} else if rval.is_string() {
|
||||
//FIXME: use jsstring_to_str when jsval grows to_jsstring
|
||||
devtools_traits::StringValue(FromJSValConvertible::from_jsval(cx, rval, conversions::Default).unwrap())
|
||||
} else if rval.is_null() {
|
||||
devtools_traits::NullValue
|
||||
} else {
|
||||
//FIXME: jsvals don't have an is_int32/is_number yet
|
||||
assert!(rval.is_object_or_null());
|
||||
assert!(rval.is_object());
|
||||
panic!("object values unimplemented")
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue