diff --git a/Jint/Native/JsString.cs b/Jint/Native/JsString.cs index ea055949a7..6a43ac3657 100644 --- a/Jint/Native/JsString.cs +++ b/Jint/Native/JsString.cs @@ -171,7 +171,7 @@ internal static JsString Create(string value) internal static JsString CachedCreate(string value) { - if (value.Length < 2) + if (value.Length is < 2 or > 10) { return Create(value); }