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:
bors-servo 2015-10-28 23:35:40 +05:30
commit 30ce2a84c1
5 changed files with 22 additions and 22 deletions

View file

@ -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(());
}