Allow js_name attribute to accept a string

This commit is contained in:
Michael Hoffmann
2018-08-05 00:17:30 +02:00
committed by Alex Crichton
parent 63ee9a024d
commit 21c36d3902
4 changed files with 114 additions and 18 deletions

View File

@ -563,7 +563,7 @@ impl<'a> FirstPassRecord<'a> {
name.to_snake_case()
}
);
let name = raw_ident(name);
let name = name.to_string();
let arguments = self.webidl_arguments_to_syn_arg_captured(arguments.into_iter(), &kind)?;