try-catch-mutate-outer-value.js — react Source File
Architecture documentation for try-catch-mutate-outer-value.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
// @enablePropagateDepsInHIR
const {shallowCopy, throwErrorWithMessage} = require('shared-runtime');
function Component(props) {
const x = [];
try {
x.push(throwErrorWithMessage('oops'));
} catch {
x.push(shallowCopy({a: props.a}));
}
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{a: 1}],
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does try-catch-mutate-outer-value.js do?
try-catch-mutate-outer-value.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in try-catch-mutate-outer-value.js?
try-catch-mutate-outer-value.js defines 1 function(s): Component.
Where is try-catch-mutate-outer-value.js in the architecture?
try-catch-mutate-outer-value.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/propagate-scope-deps-hir-fork/try-catch-mutate-outer-value.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/propagate-scope-deps-hir-fork).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free