Skip to content

refactor: use object destructuring#103

Merged
mcollina merged 1 commit intomasterfrom
refactor/obj
Oct 23, 2023
Merged

refactor: use object destructuring#103
mcollina merged 1 commit intomasterfrom
refactor/obj

Conversation

@Fdawgs
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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