File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
stdlib/public/libexec/swift-backtrace Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ import CRT
26
26
@_spi ( Internal) import Runtime
27
27
@_spi ( MemoryReaders) import Runtime
28
28
29
- // ###TODO: Escape JSON strings
30
-
31
29
extension SwiftBacktrace {
32
30
33
31
static func outputJSONCrashLog( ) {
@@ -277,7 +275,7 @@ extension SwiftBacktrace {
277
275
}
278
276
279
277
if !capturedBytes. isEmpty && !( args. sanitize ?? false ) {
280
- write ( #"", capturedMemory": {"# )
278
+ write ( #", " capturedMemory": {"# )
281
279
var first = true
282
280
for (address, bytes) in capturedBytes {
283
281
let formattedBytes = bytes
@@ -290,7 +288,7 @@ extension SwiftBacktrace {
290
288
}
291
289
write ( " \" \( hex ( address) ) \" : \" \( formattedBytes) \" " )
292
290
}
293
- write ( " }, " )
291
+ write ( " } " )
294
292
}
295
293
296
294
func outputJSONImage( _ image: Backtrace . Image , first: Bool ) {
You can’t perform that action at this time.
0 commit comments