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:
57f2955
)
Check args before asking runtime to resolve fqns to avoid assert (#44635)
author
Katelyn Gadd
<kg@luminance.org>
Fri, 13 Nov 2020 21:27:46 +0000
(13:27 -0800)
committer
GitHub
<noreply@github.com>
Fri, 13 Nov 2020 21:27:46 +0000
(15:27 -0600)
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
ac215b1
..
c16b6d7
100644
(file)
--- a/
src/mono/wasm/runtime/binding_support.js
+++ b/
src/mono/wasm/runtime/binding_support.js
@@
-1388,6
+1388,13
@@
var BindingSupportLib = {
classname = fqn.substring (idx + 1);
}
+ if (!assembly.trim())
+ throw new Error("No assembly name specified");
+ if (!classname.trim())
+ throw new Error("No class name specified");
+ if (!methodname.trim())
+ throw new Error("No method name specified");
+
var asm = this.assembly_load (assembly);
if (!asm)
throw new Error ("Could not find assembly: " + assembly);