Skip to content

Commit

Permalink
refactor: do not display error prototype properties
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Nov 23, 2024
1 parent 3eece94 commit 0d52e7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/templates/error_cause/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export class ErrorCause extends BaseComponent<ErrorCauseProps> {
${dump(props.error.cause, {
cspNonce: props.cspNonce,
styles: themes.cssVariables,
inspectObjectPrototype: false,
inspectStaticMembers: false,
inspectArrayPrototype: false,
})}
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion src/templates/error_stack/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ export class ErrorStack extends BaseComponent<ErrorStackProps> {
styles: themes.cssVariables,
expand: true,
cspNonce: props.cspNonce,
inspectObjectPrototype: false,
inspectStaticMembers: false,
inspectArrayPrototype: false,
})}
</div>
</div>
Expand All @@ -239,7 +242,6 @@ export class ErrorStack extends BaseComponent<ErrorStackProps> {
inspectObjectPrototype: false,
inspectStaticMembers: false,
inspectArrayPrototype: false,
collapse: ['ClientRequest'],
})}`
}

Expand Down

0 comments on commit 0d52e7f

Please sign in to comment.