dotnet / runtimelab

This repo is for experimentation and exploring new ideas that may or may not make it into the main dotnet/runtime repo.
MIT License
1.38k stars 192 forks source link

[NativeAOT-LLVM] PInvoke exception throwing #2454

Open yowl opened 8 months ago

yowl commented 8 months ago

To round off #2444 we need to codegen exception throwing in a few places

  1. PlatformNotSupportedException for lazy (not Direct PInvoke) DllImport's
  2. EntryPointNotFoundException When an attempt is made to WasmImport different functions using the same WasmImport module and function name, no import is produced.

Then uncomment the tests for these in HelloWasm.cs.

SingleAccretion commented 8 months ago

A few more items: