Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/expressjs/body-parser
/ parseError
Function
parseError
test/json.js:987–993 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
985
}
986
987
function
parseError (str) {
988
try {
989
JSON.parse(str); throw
new
SyntaxError(
'strict violation'
)
990
} catch (e) {
991
return
e.message
992
}
993
}
994
995
function
shouldContainInBody (str) {
996
return
function
(res) {
Callers
1
json.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected