mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
committed by
Ian Sutherland
parent
8a34b7cc77
commit
8db5e336b1
@@ -28,7 +28,7 @@ const registerReactStack = () => {
|
||||
// $FlowFixMe
|
||||
console.reactStack = frames => reactFrameStack.push(frames);
|
||||
// $FlowFixMe
|
||||
console.reactStackEnd = () => reactFrameStack.pop();
|
||||
console.reactStackEnd = frames => reactFrameStack.pop();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import { unmap } from './unmapper';
|
||||
|
||||
function getStackFrames(
|
||||
error: Error,
|
||||
unhandledRejection: boolean = false, // eslint-disable-line
|
||||
unhandledRejection: boolean = false,
|
||||
contextSize: number = 3
|
||||
): Promise<StackFrame[] | null> {
|
||||
const parsedFrames = parse(error);
|
||||
|
||||
Reference in New Issue
Block a user