Fixed an exception when logging unserializable errors

Reviewed By: nikoant

Differential Revision: D33276412

fbshipit-source-id: 615b2cc523a3ab4445a1208f460753b8634f6812
This commit is contained in:
Michel Weststrate
2021-12-22 03:17:46 -08:00
committed by Facebook GitHub Bot
parent 74fa34fe98
commit 87833c759e
3 changed files with 8 additions and 0 deletions

View File

@@ -1166,6 +1166,12 @@ Usage: `uuid()`
Returns UUID V4.
### safeStringify
Usage: `safeStringify(dataStructure)`
Serialises the given data structure using `JSON.stringify`, but doesn't throw if the processes failed, but rather returns a `<unserializable ...>` string.
## TestUtils
The object `TestUtils` as exposed from `flipper-plugin` exposes utilities to write unit tests for Sandy plugins.