mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
use str to_jsval() now
xmlhttprequest.rs, CodegenRust.py replace into_string().to_jsval() to to_jsval() conversions.rs DOMString to_jsval() use as_slice().tojsval() now
This commit is contained in:
parent
6f569dee92
commit
bb087c238b
3 changed files with 3 additions and 10 deletions
|
@ -2781,7 +2781,7 @@ pub const strings: &'static [&'static str] = &[
|
|||
|
||||
impl ToJSValConvertible for super::%s {
|
||||
fn to_jsval(&self, cx: *mut JSContext) -> JSVal {
|
||||
strings[*self as uint].into_string().to_jsval(cx)
|
||||
strings[*self as uint].to_jsval(cx)
|
||||
}
|
||||
}
|
||||
""" % (",\n ".join(['"%s"' % val for val in enum.values()]), enum.identifier.name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue