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

Commit 8c71739

Browse files
committed
bypass assert validation when setting StrictMode
1 parent f22e684 commit 8c71739

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/ServiceStack.Text/Env.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,7 @@ static Env()
140140
public static bool StrictMode
141141
{
142142
get => strictMode;
143-
set
144-
{
145-
strictMode = value;
146-
if (!JsConfig.HasInit) JsConfig.ThrowOnError = value;
147-
}
143+
set => Config.Instance.ThrowOnError = strictMode = value;
148144
}
149145

150146
public static string ServerUserAgent { get; set; }

0 commit comments

Comments
 (0)