-
Notifications
You must be signed in to change notification settings - Fork 48.9k
Lint rule to detect unminified errors #22429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -397,6 +397,7 @@ export function resolveError( | |
message: string, | ||
stack: string, | ||
): void { | ||
// eslint-disable-next-line react-internal/prod-error-codes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe include a reason why? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto elsewhere |
||
const error = new Error(message); | ||
error.stack = stack; | ||
const chunks = response._chunks; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,19 +12,22 @@ export type StringDecoder = void; | |
export const supportsBinaryStreams = false; | ||
|
||
export function createStringDecoder(): void { | ||
// eslint-disable-next-line react-internal/prod-error-codes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about defining something like an |
||
throw new Error('Should never be called'); | ||
} | ||
|
||
export function readPartialStringChunk( | ||
decoder: StringDecoder, | ||
buffer: Uint8Array, | ||
): string { | ||
// eslint-disable-next-line react-internal/prod-error-codes | ||
throw new Error('Should never be called'); | ||
} | ||
|
||
export function readFinalStringChunk( | ||
decoder: StringDecoder, | ||
buffer: Uint8Array, | ||
): string { | ||
// eslint-disable-next-line react-internal/prod-error-codes | ||
throw new Error('Should never be called'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.