Skip to content

Commit dffa522

Browse files
nohwndYoussef1313
andauthored
Update src/Platform/Microsoft.Testing.Platform/ServerMode/JsonRpc/Json/Jsonite/Jsonite.cs
Co-authored-by: Youssef Victor <[email protected]>
1 parent db4e153 commit dffa522

File tree

1 file changed

+3
-0
lines changed
  • src/Platform/Microsoft.Testing.Platform/ServerMode/JsonRpc/Json/Jsonite

1 file changed

+3
-0
lines changed

src/Platform/Microsoft.Testing.Platform/ServerMode/JsonRpc/Json/Jsonite/Jsonite.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,9 @@ private void WriteString(string text)
973973
writer.Write('t');
974974
break;
975975
default:
976+
// Intentionally diverging from the upstream code from xoofx/jsonite. See https://github.com/microsoft/testfx/issues/5120
977+
978+
// Also, https://datatracker.ietf.org/doc/html/rfc4627#section-2.5
976979
if (c < ' ' || IsHighSurrogate(c) || IsLowSurrogate(c))
977980
{
978981
writer.Write('\\');

0 commit comments

Comments
 (0)