Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/react/react
/ parse
Function
parse
scripts/shared/__tests__/evalToString-test.js:12–12 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
const
parser = require(
'@babel/parser'
);
11
12
const
parse = source => parser.parse(`(${source});`).program.body[0].expression;
// quick way to get an exp node
13
14
const
parseAndEval = source => evalStringConcat(parse(source));
15
Callers
1
parseAndEval
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected