Skip to content

[browser][MT] use code generator to get JSExport methods/ reduce reflection #98366

Open

Description

@pavelsavara
  • no reflection or move reflection to C# of BindManagedFunctionImpl
  • Interop.Runtime.BindCSFunction should be only passing MethodHandle to JS
  • drop mono_wasm_assembly_load, mono_wasm_assembly_find_class, mono_wasm_runtime_run_module_cctor, mono_wasm_assembly_find_method
  • don't breach GC barrier
  • Add unit tests to src\mono\wasm\Wasm.Build.Tests\MainWithArgsTests.cs for each combination of Main method name, signature and visibility.

Activity

  1. added
    arch-wasm
    os-browser
    on Feb 13, 2024
  2. added this to the 9.0.0 milestone on Feb 13, 2024
  3. self-assigned this
    on Feb 13, 2024
  4. changed the title [-][browser][MT] use code generator to get JSExport methods[/-] [+][browser][MT] use code generator to get JSExport methods/ reduce reflection[/+] on Feb 13, 2024
  5. modified the milestones: 9.0.0, Future on Mar 28, 2024
  6. maxkatz6 commented on Aug 15, 2024

    @maxkatz6
    Contributor

    I would assume this is also necessary for NativeAOT-LLVM compatibility dotnet/runtimelab#2626

  7. flucas1 commented on Jun 4, 2025

    @flucas1

    @pavelsavara
    Do you think that is there a chance to have this in .NET 10? (In view of Native AOT - LLVM)

  8. pavelsavara commented on Jun 5, 2025

    @pavelsavara
    MemberAuthor

    no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-System.Runtime.InteropServices.JavaScriptos-browser

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions