From 4ca04f1c4b04cf66ffe0fb4183dbae5619bd5910 Mon Sep 17 00:00:00 2001 From: Katelyn Gadd Date: Tue, 15 Jun 2021 12:29:51 -0700 Subject: [PATCH] Fix unboxing datetime instances (#54105) Unboxing datetime instances is currently broken in some cases due to an incorrect method signature --- src/mono/wasm/runtime/binding_support.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4