MCPcopy
hub / github.com/facebook/react / Test

Function Test

packages/react-reconciler/src/__tests__/ReactCache-test.js:181–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179 let y;
180 let z;
181 function Test() {
182 try {
183 throws(1);
184 } catch (e) {
185 x = e;
186 }
187 try {
188 throws(1);
189 } catch (e) {
190 y = e;
191 }
192 try {
193 throws(2);
194 } catch (e) {
195 z = e;
196 }
197
198 return 'Blank';
199 }
200
201 ReactNoopFlightServer.render(<Test />);
202 expect(x).toBe(y);

Callers

nothing calls this directly

Calls 1

cacheSignalFunction · 0.50

Tested by

no test coverage detected