[wasm][binding] Add bindings for calling the entry point of an '.exe' (#17510)
commitcdf8b839aef8068f601bdbed5b3fd7ec4acc462f
authorKenneth Pouncey <kjpou@pt.lu>
Wed, 23 Oct 2019 10:43:16 +0000 (23 12:43 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Oct 2019 10:43:16 +0000 (23 12:43 +0200)
treea39bade87b480d1e98b3e0ce5aef25116377b139
parent479d2dff365a688cc0045b3c76aa7aba79d4784e
[wasm][binding] Add bindings for calling the entry point of an '.exe' (#17510)

- Add `mono_bind_assembly_entry_point`
- Add `mono_call_assembly_entry_point`
   - Module.mono_call_assembly_entry_point("WasmHttpStreamSync", []);

Example:

```
   Module.mono_call_assembly_entry_point("WasmHttpStreamSync", []);
```

```
   var main = Module.mono_bind_assembly_entry_point("WasmHttpStreamSync", []);
   main();
```
sdks/wasm/src/binding_support.js