(str)
| 292 | } |
| 293 | |
| 294 | function escapeSnapshotKey(str) { |
| 295 | let result = StringPrototypeSlice(JSONStringify(str, null, 2), 1, -1); |
| 296 | result = StringPrototypeReplaceAll(result, '`', '\\`'); |
| 297 | result = StringPrototypeReplaceAll(result, '${', '\\${'); |
| 298 | return result; |
| 299 | } |
| 300 | |
| 301 | function templateEscape(str) { |
| 302 | let result = String(str); |