From: Katelyn Gadd Date: Tue, 15 Jun 2021 19:29:51 +0000 (-0700) Subject: Fix unboxing datetime instances (#54105) X-Git-Tag: submit/tizen/20210909.063632~752 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ca04f1c4b04cf66ffe0fb4183dbae5619bd5910;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix unboxing datetime instances (#54105) Unboxing datetime instances is currently broken in some cases due to an incorrect method signature --- diff --git a/src/mono/wasm/runtime/binding_support.js b/src/mono/wasm/runtime/binding_support.js index 3951da5..6661228 100644 --- a/src/mono/wasm/runtime/binding_support.js +++ b/src/mono/wasm/runtime/binding_support.js @@ -441,7 +441,7 @@ var BindingSupportLib = { case 18: throw new Error ("Marshalling of primitive arrays are not supported. Use the corresponding TypedArray instead."); case 20: // clr .NET DateTime - var dateValue = this.call_method(this.get_date_value, null, "md", [ mono_obj ]); + var dateValue = this.call_method(this.get_date_value, null, "m", [ mono_obj ]); return new Date(dateValue); case 21: // clr .NET DateTimeOffset var dateoffsetValue = this._object_to_string (mono_obj);