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: use object destructuring #103

Merged
merged 1 commit into from
Oct 23, 2023
Merged

refactor: use object destructuring #103

merged 1 commit into from
Oct 23, 2023

Conversation

Fdawgs
Copy link
Member

@Fdawgs Fdawgs commented Oct 22, 2023

See fastify/env-schema#165

Checklist

Comment on lines 100 to +101
function parse (text, reviver, options) {
const stackTraceLimit = Error.stackTraceLimit
const { stackTraceLimit } = Error
Copy link
Contributor

Choose a reason for hiding this comment

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

For this I want to see benchmarks proving we dont have perf degredations.

Copy link
Member Author

Choose a reason for hiding this comment

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

@Uzlopak

Before:

image

After:

image

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 0d7fdfb into master Oct 23, 2023
2 checks passed
@Fdawgs Fdawgs deleted the refactor/obj branch October 23, 2023 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants