Skip to content

Commit ad8e9b2

Browse files
authored
fix WASM support (#2201)
1 parent 9c32a87 commit ad8e9b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BenchmarkDotNet/Portability/RuntimeInformation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ internal static CpuInfo GetCpuInfo()
163163

164164
internal static string GetRuntimeVersion()
165165
{
166-
if (IsMono)
166+
if (IsMono && !IsWasm)
167167
{
168168
var monoRuntimeType = Type.GetType("Mono.Runtime");
169169
var monoDisplayName = monoRuntimeType?.GetMethod("GetDisplayName", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static);

0 commit comments

Comments
 (0)