Skip to content

Commit f644e5b

Browse files
authored
Fix PlatformDetection.IsThreadingSupported (#87863)
1 parent 4d4bc3f commit f644e5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ public static bool IsPrivilegedProcess
116116
public static bool FileCreateCaseSensitive => IsCaseSensitiveOS;
117117
#endif
118118

119-
public static bool IsThreadingSupported => !IsWasi && IsEnvironmentVariableTrue("IsBrowserThreadingSupported");
119+
public static bool IsThreadingSupported => (!IsWasi && !IsBrowser) || IsWasmThreadingSupported;
120+
public static bool IsWasmThreadingSupported => IsBrowser && IsEnvironmentVariableTrue("IsBrowserThreadingSupported");
120121
public static bool IsBinaryFormatterSupported => IsNotMobile && !IsNativeAot;
121122

122123
public static bool IsStartingProcessesSupported => !IsiOS && !IstvOS;

0 commit comments

Comments
 (0)