Skip to content
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

refactor: Errors do not need new #10030

Merged
merged 6 commits into from
Sep 5, 2024
Merged

refactor: Errors do not need new #10030

merged 6 commits into from
Sep 5, 2024

Conversation

erights
Copy link
Member

@erights erights commented Sep 4, 2024

Closes: #XXXX
Refs: endojs/endo#2445

Description

Errors do not need new

For all construction calls to a *Error constructor, the new is not needed. IOW, just calling the *Error constructor as a function has the same effect.

Security Considerations

none

Scaling Considerations

none

Documentation Considerations

none

Testing Considerations

none

Compatibility Considerations

none

Upgrade Considerations

none

@erights erights self-assigned this Sep 4, 2024
@erights erights changed the title Markm errors no new refactor: Errors do not need new Sep 4, 2024
Copy link

cloudflare-workers-and-pages bot commented Sep 4, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3dc7e69
Status: ✅  Deploy successful!
Preview URL: https://dd9097ae.agoric-sdk.pages.dev
Branch Preview URL: https://markm-errors-no-new.agoric-sdk.pages.dev

View logs

@erights erights marked this pull request as ready for review September 4, 2024 21:41
Copy link
Member

@turadg turadg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please use automerge:squash so it's one commit. the fixup! commits won't autosquash because they don't match any other commit messages.

@erights erights added the automerge:squash Automatically squash merge label Sep 5, 2024
@mergify mergify bot merged commit 80f5cb1 into master Sep 5, 2024
80 checks passed
@mergify mergify bot deleted the markm-errors-no-new branch September 5, 2024 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:squash Automatically squash merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants