ReactTaintRegistry.js — react Source File
Architecture documentation for ReactTaintRegistry.js, a javascript file in the react codebase. 0 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 0484691f_0582_7bc4_c981_3bc171ad6061["ReactTaintRegistry.js"] 07e97397_bfd8_cd84_0c06_177fdc7a878a["ReactSharedInternalsServer.js"] 07e97397_bfd8_cd84_0c06_177fdc7a878a --> 0484691f_0582_7bc4_c981_3bc171ad6061 style 0484691f_0582_7bc4_c981_3bc171ad6061 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
export interface Reference {}
export type TaintEntry = {
message: string,
count: number,
};
export const TaintRegistryObjects: WeakMap<Reference, string> = new WeakMap();
export const TaintRegistryValues: Map<string | bigint, TaintEntry> = new Map();
// Byte lengths of all binary values we've ever seen. We don't both refcounting this.
// We expect to see only a few lengths here such as the length of token.
export const TaintRegistryByteLengths: Set<number> = new Set();
// When a value is finalized, it means that it has been removed from any global caches.
// No future requests can get a handle on it but any ongoing requests can still have
// a handle on it. It's still tainted until that happens.
export type RequestCleanupQueue = Array<string | bigint>;
export const TaintRegistryPendingRequests: Set<RequestCleanupQueue> = new Set();
Domain
Imported By
Source
Frequently Asked Questions
What does ReactTaintRegistry.js do?
ReactTaintRegistry.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What files import ReactTaintRegistry.js?
ReactTaintRegistry.js is imported by 1 file(s): ReactSharedInternalsServer.js.
Where is ReactTaintRegistry.js in the architecture?
ReactTaintRegistry.js is located at packages/react/src/ReactTaintRegistry.js (domain: BabelCompiler, directory: packages/react/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free