Skip to content

Commit 9e5b2c9

Browse files
author
Brian Vaughn
authored
Add expando prop to disabledLog function (#18914)
This will enable it to be identified by Facebook infra even if the function name is mangled during DevTools build process.
1 parent fdb6416 commit 9e5b2c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/shared/ConsolePatchingDev.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ let prevWarn;
1919
let prevError;
2020

2121
function disabledLog() {}
22+
disabledLog.__reactDisabledLog = true;
2223

2324
export function disableLogs(): void {
2425
if (__DEV__) {

0 commit comments

Comments
 (0)