MCPcopy Index your code
hub / github.com/reactjs/react-codemod / reportError

Function reportError

transforms/react-to-react-dom.js:40–44  ·  view source on GitHub ↗
(node, error)

Source from the content-addressed store, hash-verified

38];
39
40function reportError(node, error) {
41 throw new Error(
42 `At ${node.loc.start.line}:${node.loc.start.column}: ${error}`
43 );
44}
45
46function isRequire(path, moduleName) {
47 return (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected