Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit f7fdd63

Browse files
committed
Add dummy JsConfig.InitStatics() to force deterministic initialization of static constructor
1 parent 7984fca commit f7fdd63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ServiceStack.Text/JsConfig.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ static JsConfig()
2222
LicenseUtils.Init();
2323
}
2424

25-
internal static void InitStatics() {}
25+
// force deterministic initialization of static constructor
26+
public static void InitStatics() {}
2627

2728
public static JsConfigScope BeginScope()
2829
{

0 commit comments

Comments
 (0)