mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-03 02:21:05 +08:00
As of ES2019, JSON ⊂ ECMAScript [1], meaning we can use JSON serialization to embed string literals into JavaScript programs. This eliminates the need for any custom string escaping logic, since we can simply use `json.dumps` now. [1]: https://v8.dev/features/subsume-json DISABLE_THIRD_PARTY_CHECK=added missing escaping to *.json5 file https://crrev.com/c/4401593 Bug: chromium:1411444 Change-Id: I9f0c5b2dfa218951bcb0d31432c9484666307f7d Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4402896 Commit-Queue: Mathias Bynens <mathias@chromium.org> Reviewed-by: Simon Zünd <szuend@chromium.org> Reviewed-by: Ari Chivukula <arichiv@chromium.org>