From 18ccbe287383e2822ea5cd18c5b16987705adbff Mon Sep 17 00:00:00 2001 From: pavelsavara Date: Wed, 21 Jun 2023 10:47:24 +0200 Subject: [PATCH] fix bug introduced in https://github.com/dotnet/runtime/pull/87549 --- .../Common/tests/TestUtilities/System/PlatformDetection.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs b/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs index 0d51391bd956b..384dc1877f1b5 100644 --- a/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs +++ b/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs @@ -116,7 +116,8 @@ public static bool IsPrivilegedProcess public static bool FileCreateCaseSensitive => IsCaseSensitiveOS; #endif - public static bool IsThreadingSupported => !IsWasi && IsEnvironmentVariableTrue("IsBrowserThreadingSupported"); + public static bool IsThreadingSupported => (!IsWasi && !IsBrowser) || IsWasmThreadingSupported; + public static bool IsWasmThreadingSupported => IsBrowser && IsEnvironmentVariableTrue("IsBrowserThreadingSupported"); public static bool IsBinaryFormatterSupported => IsNotMobile && !IsNativeAot; public static bool IsStartingProcessesSupported => !IsiOS && !IstvOS;