projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
886cade
)
[wasm][bindings] Fix an api regression introduced in #42486 (#42658)
author
Larry Ewing
<lewing@microsoft.com>
Thu, 24 Sep 2020 04:35:51 +0000
(23:35 -0500)
committer
GitHub
<noreply@github.com>
Thu, 24 Sep 2020 04:35:51 +0000
(23:35 -0500)
* Fix an api regression introduced in #42486
* Update src/mono/wasm/runtime/binding_support.js
a number it is
Co-authored-by: Ankit Jain <radical@gmail.com>
Co-authored-by: Ankit Jain <radical@gmail.com>
src/mono/wasm/runtime/binding_support.js
patch
|
blob
|
history
diff --git
a/src/mono/wasm/runtime/binding_support.js
b/src/mono/wasm/runtime/binding_support.js
index
05ac8ef
..
5d79755
100644
(file)
--- a/
src/mono/wasm/runtime/binding_support.js
+++ b/
src/mono/wasm/runtime/binding_support.js
@@
-142,6
+142,9
@@
var BindingSupportLib = {
},
js_string_to_mono_string: function (string) {
+ if (string === null || typeof string === "undefined")
+ return 0;
+
var buffer = Module._malloc ((string.length + 1) * 2);
var buffer16 = (buffer / 2) | 0;
for (var i = 0; i < string.length; i++)