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.
Brian Vaughn committed
May 13, 2020 at 17:03 UTC
9e5b2c94e63fdd007afcc21535f07b4f61b05ddc
1 file changed
+1
packages/shared/ConsolePatchingDev.js
+1
@@ -19,6 +19,7 @@ let prevWarn;
19
let prevError;
20
21
function disabledLog() {}
22
+disabledLog.__reactDisabledLog = true;
23
24
export function disableLogs(): void {
25
if (__DEV__) {