MCPcopy Index your code
hub / github.com/react/react / getProperty

Function getProperty

packages/react-refresh/src/ReactFreshRuntime.js:177–184  ·  view source on GitHub ↗
(object: any, property: string)

Source from the content-addressed store, hash-verified

175
176// This is a safety mechanism to protect against rogue getters and Proxies.
177function getProperty(object: any, property: string) {
178 try {
179 return object[property];
180 } catch (err) {
181 // Intentionally ignore.
182 return undefined;
183 }
184}
185
186export function performReactRefresh(): RefreshUpdate | null {
187 if (!__DEV__) {

Callers 3

registerFunction · 0.70
setSignatureFunction · 0.70
isLikelyComponentTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected