kjpou1 / wasm-dom

DOM interface for mono web assembly
MIT License
37 stars 7 forks source link

ECall methods must be packaged into a system module #8

Open VBAndCs opened 4 years ago

VBAndCs commented 4 years ago

I downloaded this repo, and the last build of wasm sdk. When I run it, this code:

(JSObject)Runtime.GetGlobalObject("WebAssembly_Browser_DOM");

in WebAssembly.Browser\DOM\DOMObject causes the exception:

System.TypeInitializationException: 'The type initializer for 'WebAssembly.Browser.DOM.DOMObject' threw an exception.'

Inner exception: SecurityException: ECall methods must be packaged into a system module.

Why? What does this mean? How can I solve this?

LunicLynx commented 3 years ago

Is this problem still happening? I can't reproduce it.