MCPcopy
hub / github.com/expressjs/body-parser / parseError

Function parseError

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

Source from the content-addressed store, hash-verified

760}
761
762function parseError (str) {
763 try {
764 JSON.parse(str); throw new SyntaxError('strict violation')
765 } catch (e) {
766 return e.message
767 }
768}
769
770function shouldContainInBody (str) {
771 return function (res) {

Callers 1

json.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…