We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b525ba3 commit 0cee169Copy full SHA for 0cee169
src/BenchmarkDotNet/Portability/RuntimeInformation.cs
@@ -43,7 +43,8 @@ public static bool IsNetCore
43
44
public static bool IsNativeAOT
45
=> Environment.Version.Major >= 5
46
- && string.IsNullOrEmpty(typeof(object).Assembly.Location); // it's merged to a single .exe and .Location returns null
+ && string.IsNullOrEmpty(typeof(object).Assembly.Location) // it's merged to a single .exe and .Location returns null
47
+ && !IsWasm; // Wasm also returns "" for assembly locations
48
49
public static bool IsWasm => IsOSPlatform(OSPlatform.Create("BROWSER"));
50
0 commit comments