fix and disable test js_globals::Number::to_locale_string

This commit is contained in:
R. Andrew Ohana 2018-06-23 18:19:21 -07:00
parent 35c5dafdd2
commit 8abecba983

View File

@ -3,7 +3,9 @@
use super::project;
#[test]
// TODO: test seems to be system dependent, disable for now
// #[test]
#[allow(dead_code)]
fn to_locale_string() {
project()
.file("src/lib.rs", r#"
@ -14,7 +16,7 @@ fn to_locale_string() {
use wasm_bindgen::js;
#[wasm_bindgen]
pub fn to_locale_string(this: &js::Number, locale: js::JsString) -> js::JsString {
pub fn to_locale_string(this: &js::Number, locale: &str) -> js::JsString {
this.to_locale_string(locale)
}
"#)