Commit 4b43eea
src,test: fix JSON escaping in node-report
Previously only simple escape sequences were handled
(i.e. \n, \t, r etc.). This commit adds escaping of other control
symbols in the range of 0x00 to 0x20.
Also, this replaces multiple find+replace calls with a single pass
replacer.
PR-URL: #25626
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>1 parent f33d705 commit 4b43eeaCopy full SHA for 4b43eea
File tree
Expand file treeCollapse file tree
3 files changed
+60
-20
lines changedOpen diff view settings
Filter options
- src
- test/cctest
Expand file treeCollapse file tree
3 files changed
+60
-20
lines changedOpen diff view settings
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
981 | 981 | |
982 | 982 | |
983 | 983 | |
| 984 | + |
984 | 985 | |
985 | 986 | |
986 | 987 | |
|
Collapse file
+33-20Lines changed: 33 additions & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
214 | 214 | |
215 | 215 | |
216 | 216 | |
217 | | - |
218 | | - |
219 | | - |
220 | | - |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
221 | 228 | |
222 | | - |
223 | | - |
224 | | - |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
225 | 251 | |
226 | | - |
227 | | - |
228 | | - |
229 | | - |
230 | | - |
231 | | - |
232 | | - |
233 | | - |
234 | | - |
235 | | - |
236 | | - |
237 | | - |
238 | | - |
239 | 252 | |
240 | 253 | |
241 | 254 | |
|
Collapse file
test/cctest/test_report_util.cc
Copy file name to clipboard+26Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
0 commit comments