Skip to content

Commit

Permalink
Sandboxed test is not compiling because of illegal unicode escape #1134
Browse files Browse the repository at this point in the history
  • Loading branch information
Vassiliy-Kudryashov committed Oct 19, 2022
1 parent 5a242a0 commit 7f952fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ internal class CgMethodConstructor(val context: CgContext) : CgContextOwner by c
}

private fun String.escapeControlChars() : String {
return this.replace("\b", "\\b").replace("\n", "\\n").replace("\t", "\\t").replace("\r", "\\r")
return this.replace("\b", "\\b").replace("\n", "\\n").replace("\t", "\\t").replace("\r", "\\r").replace("\\u","\\\\u")
}

private fun writeWarningAboutCrash() {
Expand Down

0 comments on commit 7f952fd

Please sign in to comment.