mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #8242 - Ms2ger:update-js, r=metajack
Update js. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8242) <!-- Reviewable:end -->
This commit is contained in:
commit
30ce2a84c1
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