MCPcopy Create free account
hub / github.com/expressjs/body-parser / parseError

Function parseError

test/json.js:735–741  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

733}
734
735function parseError (str) {
736 try {
737 JSON.parse(str); throw new SyntaxError('strict violation')
738 } catch (e) {
739 return e.message
740 }
741}
742
743function shouldContainInBody (str) {
744 return function (res) {

Callers 1

json.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected