Home / File/ repro-invalid-function-expression-effects-phi.js — react Source File

repro-invalid-function-expression-effects-phi.js — react Source File

Architecture documentation for repro-invalid-function-expression-effects-phi.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

function Component({a, b}) {
  const y = {a};
  const x = {b};
  const f = () => {
    let z = null;
    while (z == null) {
      z = x;
    }
    // z is a phi with a backedge, and we don't realize it could be x,
    // and therefore fail to record a Capture x <- y effect for this
    // function expression
    z.y = y;
  };
  f();
  mutate(x);
  return <div>{x}</div>;
}

Subdomains

Functions

Frequently Asked Questions

What does repro-invalid-function-expression-effects-phi.js do?
repro-invalid-function-expression-effects-phi.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 repro-invalid-function-expression-effects-phi.js?
repro-invalid-function-expression-effects-phi.js defines 1 function(s): Component.
Where is repro-invalid-function-expression-effects-phi.js in the architecture?
repro-invalid-function-expression-effects-phi.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/new-mutability/repro-invalid-function-expression-effects-phi.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/new-mutability).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free