fs: validate encoding to binding.writeString()
The binding layer performs some validation of the encoding and data passed to WriteString(). This commit adds similar validation to the JS layer for better error handling. PR-URL: https://github.com/nodejs/node/pull/38183 Fixes: https://github.com/nodejs/node/issues/38168 Reviewed-By:Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By:
Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By:
Darshan Sen <raisinten@gmail.com> Reviewed-By:
Anto Aravinth <anto.aravinth.cse@gmail.com>
parent
28bca33f
Please register or sign in to comment