mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update js.
This commit is contained in:
parent
8cc6ce4b86
commit
2a2ab23dfb
5 changed files with 22 additions and 22 deletions
|
@ -520,7 +520,7 @@ pub fn find_enum_string_index(cx: *mut JSContext,
|
|||
v: HandleValue,
|
||||
values: &[&'static str])
|
||||
-> Result<Option<usize>, ()> {
|
||||
let jsstr = ToString(cx, v);
|
||||
let jsstr = unsafe { ToString(cx, v) };
|
||||
if jsstr.is_null() {
|
||||
return Err(());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue