[wasm] Lazy init of [JSExport] bindings (#77293)
authorPavel Savara <pavel.savara@gmail.com>
Thu, 8 Dec 2022 13:25:14 +0000 (14:25 +0100)
committerGitHub <noreply@github.com>
Thu, 8 Dec 2022 13:25:14 +0000 (14:25 +0100)
commit05bf5c322f2db9a211f352a9b296addea3ca0cf0
treebca3d9109506315d8bf99676661a7fc1169d96e7
parentbe0eccd79069f611e90c536a1f4cdf6c056a3a68
[wasm] Lazy init of [JSExport] bindings (#77293)

* don't trigger static ctor with JSExport init
* lazy init from JS
* fix for backward compatibility with Net7
src/libraries/System.Runtime.InteropServices.JavaScript/gen/JSImportGenerator/Comparers.cs
src/libraries/System.Runtime.InteropServices.JavaScript/gen/JSImportGenerator/Constants.cs
src/libraries/System.Runtime.InteropServices.JavaScript/gen/JSImportGenerator/JSExportCodeGenerator.cs
src/libraries/System.Runtime.InteropServices.JavaScript/gen/JSImportGenerator/JSExportGenerator.cs
src/libraries/System.Runtime.InteropServices.JavaScript/gen/JSImportGenerator/JSSignatureContext.cs
src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.UnitTests/System.Runtime.InteropServices.JavaScript.Tests.csproj
src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.UnitTests/System/Runtime/InteropServices/JavaScript/JavaScriptTestHelper.cs
src/mono/wasm/runtime/invoke-cs.ts
src/mono/wasm/runtime/invoke-js.ts