From ad8e9b26ef22aa77abff2469f7668986e1449127 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Fri, 18 Nov 2022 23:14:39 +0100 Subject: [PATCH] fix WASM support (#2201) --- src/BenchmarkDotNet/Portability/RuntimeInformation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BenchmarkDotNet/Portability/RuntimeInformation.cs b/src/BenchmarkDotNet/Portability/RuntimeInformation.cs index a630e2daf9..07c287b9f3 100644 --- a/src/BenchmarkDotNet/Portability/RuntimeInformation.cs +++ b/src/BenchmarkDotNet/Portability/RuntimeInformation.cs @@ -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);