File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3390,7 +3390,7 @@ extern "C" {
3390
3390
///
3391
3391
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString)
3392
3392
#[ wasm_bindgen( method, js_name = toLocaleTimeString) ]
3393
- pub fn to_locale_time_string ( this : & Date , locale : & str ) -> JsString ;
3393
+ pub fn to_locale_time_string ( this : & Date , locale : & str , options : & JsValue ) -> JsString ;
3394
3394
3395
3395
/// The `toString()` method returns a string representing
3396
3396
/// the specified Date object.
Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ fn to_locale_string() {
484
484
fn to_locale_time_string ( ) {
485
485
let date = Date :: new ( & "August 19, 1975 23:15:30" . into ( ) ) ;
486
486
assert_eq ! (
487
- JsValue :: from( date. to_locale_time_string( "en-US" ) ) ,
487
+ JsValue :: from( date. to_locale_time_string( "en-US" , & JsValue :: undefined ( ) ) ) ,
488
488
"11:15:30 PM" ,
489
489
) ;
490
490
}
You can’t perform that action at this time.
0 commit comments