dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.95k stars 4.02k forks source link

CoreClrShim static field initializers can throw #30218

Open rchande opened 6 years ago

rchande commented 6 years ago

While experimenting with using scripting on Blazor we noticed that this field initializer throws under Blazor (which is mono webassembly). This is preventing us from using scripting. cc @jaredpar

jaredpar commented 6 years ago

What is the exception in Blazor? Is it a NullReferenceException?

rchande commented 6 years ago

@jaredpar Yes.