Skip to content

Commit 8abecba

Browse files
committed
fix and disable test js_globals::Number::to_locale_string
1 parent 35c5daf commit 8abecba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/all/js_globals/Number.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
use super::project;
44

55

6-
#[test]
6+
// TODO: test seems to be system dependent, disable for now
7+
// #[test]
8+
#[allow(dead_code)]
79
fn to_locale_string() {
810
project()
911
.file("src/lib.rs", r#"
@@ -14,7 +16,7 @@ fn to_locale_string() {
1416
use wasm_bindgen::js;
1517
1618
#[wasm_bindgen]
17-
pub fn to_locale_string(this: &js::Number, locale: js::JsString) -> js::JsString {
19+
pub fn to_locale_string(this: &js::Number, locale: &str) -> js::JsString {
1820
this.to_locale_string(locale)
1921
}
2022
"#)

0 commit comments

Comments
 (0)