File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/react-devtools-shared/src/backend Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ function filterDebugStack(error: Error): string {
21
21
// to save bandwidth even in DEV. We'll also replay these stacks on the client so by
22
22
// stripping them early we avoid that overhead. Otherwise we'd normally just rely on
23
23
// the DevTools or framework's ignore lists to filter them out.
24
+ const prevPrepareStackTrace = Error . prepareStackTrace ;
25
+ // $FlowFixMe[incompatible-type] It does accept undefined.
26
+ Error . prepareStackTrace = undefined ;
24
27
let stack = error . stack ;
28
+ Error . prepareStackTrace = prevPrepareStackTrace ;
25
29
if ( stack . startsWith ( 'Error: react-stack-top-frame\n' ) ) {
26
30
// V8's default formatting prefixes with the error message which we
27
31
// don't want/need.
You can’t perform that action at this time.
0 commit comments