Skip to content

Commit 2439c3c

Browse files
committed
fix: add Error prefix to Error objects names
1 parent fc5ef50 commit 2439c3c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/react-devtools-shared/src/backend

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ export function patch({
230230
// gets printed so to make the colon make sense, we name it so we print Stack:
231231
// and similarly Safari leave an expandable slot.
232232
fakeError.name = enableOwnerStacks
233-
? 'Stack'
234-
: 'Component Stack'; // This gets printed
233+
? 'Error Stack'
234+
: 'Error Component Stack'; // This gets printed
235235
// In Chromium, the stack property needs to start with ^[\w.]*Error\b to trigger stack
236236
// formatting. Otherwise it is left alone. So we prefix it. Otherwise we just override it
237237
// to our own stack.

0 commit comments

Comments
 (0)