Closed tinovyatkin closed 7 years ago
decode deals with unsanitized user data, so, it can throw in badly formatted JSON
decode
Also in your code if Buffer construction trows you will attempt to JSON.parse an empty string.
JSON.parse
thanks ! 😄
decode
deals with unsanitized user data, so, it can throw in badly formatted JSON