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.
This commit is contained in:
Brian Vaughn 2020-05-13 17:03:50 -07:00 committed by GitHub
parent fdb641629e
commit 9e5b2c94e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ let prevWarn;
let prevError; let prevError;
function disabledLog() {} function disabledLog() {}
disabledLog.__reactDisabledLog = true;
export function disableLogs(): void { export function disableLogs(): void {
if (__DEV__) { if (__DEV__) {