Skip to content

Commit

Permalink
Fix invalid exception filter resulting to a crash at startup (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb authored and glennawatson committed Sep 19, 2019
1 parent 348e789 commit 82ad2c5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ public class WasmPlatformEnlightenmentProvider : CurrentPlatformEnlightenmentPro
new Thread(() => { }).Start();
return false;
}
catch (NotSupportedException)
catch (Exception)
{
// Usually a TypeInitializationException, however be safe by considering any platform
// that does not support threading as "Wasm".
return true;
}
}, LazyThreadSafetyMode.PublicationOnly);
Expand Down

0 comments on commit 82ad2c5

Please sign in to comment.