Skip to content

Commit

Permalink
fix WASM support (dotnet#2201)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsitnik authored Nov 18, 2022
1 parent 9c32a87 commit ad8e9b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BenchmarkDotNet/Portability/RuntimeInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ internal static CpuInfo GetCpuInfo()

internal static string GetRuntimeVersion()
{
if (IsMono)
if (IsMono && !IsWasm)
{
var monoRuntimeType = Type.GetType("Mono.Runtime");
var monoDisplayName = monoRuntimeType?.GetMethod("GetDisplayName", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static);
Expand Down

0 comments on commit ad8e9b2

Please sign in to comment.