try-catch-within-mutable-range.js — react Source File
Architecture documentation for try-catch-within-mutable-range.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
const {throwErrorWithMessage, shallowCopy} = require('shared-runtime');
function Component(props) {
const x = [];
try {
x.push(throwErrorWithMessage('oops'));
} catch {
x.push(shallowCopy({}));
}
x.push(props.value); // extend the mutable range to include the try/catch
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does try-catch-within-mutable-range.js do?
try-catch-within-mutable-range.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-within-mutable-range.js?
try-catch-within-mutable-range.js defines 1 function(s): Component.
Where is try-catch-within-mutable-range.js in the architecture?
try-catch-within-mutable-range.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/try-catch-within-mutable-range.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free