Skip to content

Commit f9ed4d8

Browse files
committed
supportsNativeConsoleTasks -> supportsConsoleTasks
1 parent c58f224 commit f9ed4d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-devtools-shared/src/backend/console.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
getStackByFiberInDevAndProd,
3131
getOwnerStackByFiberInDev,
3232
supportsOwnerStacks,
33-
supportsNativeConsoleTasks,
33+
supportsConsoleTasks,
3434
} from './fiber/DevToolsFiberComponentStack';
3535
import {formatOwnerStack} from './shared/DevToolsOwnerStack';
3636
import {castBool, castBrowserTheme} from '../utils';
@@ -251,7 +251,7 @@ export function patch({
251251

252252
if (
253253
consoleSettingsRef.appendComponentStack &&
254-
!supportsNativeConsoleTasks(current)
254+
!supportsConsoleTasks(current)
255255
) {
256256
const enableOwnerStacks = supportsOwnerStacks(current);
257257
let componentStack = '';

packages/react-devtools-shared/src/backend/fiber/DevToolsFiberComponentStack.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function getStackByFiberInDevAndProd(
108108
}
109109
}
110110

111-
export function supportsNativeConsoleTasks(fiber: Fiber): boolean {
111+
export function supportsConsoleTasks(fiber: Fiber): boolean {
112112
// If this Fiber supports native console.createTask then we are already running
113113
// inside a native async stack trace if it's active - meaning the DevTools is open.
114114
// Ideally we'd detect if this task was created while the DevTools was open or not.

0 commit comments

Comments
 (0)