capture-param-mutate.js — react Source File
Architecture documentation for capture-param-mutate.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
function getNativeLogFunction(level) {
return function () {
let str;
if (arguments.length === 1 && typeof arguments[0] === 'string') {
str = arguments[0];
} else {
str = Array.prototype.map
.call(arguments, function (arg) {
return inspect(arg, {
depth: 10,
});
})
.join(', ');
}
const firstArg = arguments[0];
let logLevel = level;
if (
typeof firstArg === 'string' &&
firstArg.slice(0, 9) === 'Warning: ' &&
logLevel >= LOG_LEVELS.error
) {
logLevel = LOG_LEVELS.warn;
}
if (global.__inspectorLog) {
global.__inspectorLog(
INSPECTOR_LEVELS[logLevel],
str,
[].slice.call(arguments),
INSPECTOR_FRAMES_TO_SKIP
);
}
if (groupStack.length) {
str = groupFormat('', str);
}
global.nativeLoggingHook(str, logLevel);
};
}
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does capture-param-mutate.js do?
capture-param-mutate.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 capture-param-mutate.js?
capture-param-mutate.js defines 1 function(s): getNativeLogFunction.
Where is capture-param-mutate.js in the architecture?
capture-param-mutate.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capture-param-mutate.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