Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Emscripten does not support file locking, so there is no need to chec…
…k the file system type
  • Loading branch information
adamsitnik committed Jul 8, 2021
commit ba6d027297107d49d32c587936c777b79a1fddde
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,11 @@ private bool CanLockTheFile(Interop.Sys.LockOperations lockOperation, FileAccess
{
Debug.Assert(lockOperation == Interop.Sys.LockOperations.LOCK_EX || lockOperation == Interop.Sys.LockOperations.LOCK_SH);

if (DisableFileLocking)
if (OperatingSystem.IsBrowser())
{
return false; // #40065: Emscripten does not support file locking
}
else if (DisableFileLocking)
{
return false;
}
Expand Down