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

fix(isolated_declarations): Don't report an error for parameters if they are ObjectPattern or ArrayPattern with an explicit type #4065

Conversation

MichaelMitchell-at
Copy link
Contributor

The logic in #3810 was slightly off as demonstrated by the snapshot test.

Copy link

graphite-app bot commented Jul 6, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added the A-isolated-declarations Isolated Declarations label Jul 6, 2024
Copy link

codspeed-hq bot commented Jul 6, 2024

CodSpeed Performance Report

Merging #4065 will not alter performance

Comparing MichaelMitchell-at:07-06-fix_isolated_declarations_dont_report_an_error_for_parameters_if_they_are_objectpattern_or_arraypattern_with_an_explicit_type (3b6bb0e) with main (7fe2a2f)

Summary

✅ 28 untouched benchmarks

@MichaelMitchell-at MichaelMitchell-at force-pushed the 07-06-fix_isolated_declarations_dont_report_an_error_for_parameters_if_they_are_objectpattern_or_arraypattern_with_an_explicit_type branch from 86fc701 to 536e744 Compare July 6, 2024 09:59
…hey are ObjectPattern or ArrayPattern with an explicit type
@MichaelMitchell-at MichaelMitchell-at force-pushed the 07-06-fix_isolated_declarations_dont_report_an_error_for_parameters_if_they_are_objectpattern_or_arraypattern_with_an_explicit_type branch from 536e744 to 3b6bb0e Compare July 6, 2024 10:13
@Dunqing Dunqing merged commit adee728 into oxc-project:main Jul 6, 2024
25 checks passed
@github-actions github-actions bot mentioned this pull request Jul 6, 2024
Boshen added a commit that referenced this pull request Jul 6, 2024
## [0.17.1] - 2024-07-06

### Bug Fixes

- aa585d3 ast_codegen, ast: Visit `ExpressionArrayElement` as
`Expression`. (#4061) (rzvxa)
- 564a75a codegen: Missing TypeParameters in TSConstructSignature
(#4063) (michaelm)
- adee728 isolated_declarations: Don't report an error for parameters if
they are ObjectPattern or ArrayPattern with an explicit type (#4065)
(michaelm)
- 1b8f208 isolated_declarations: Correct emit for private static methods
(#4064) (michaelm)
- 719fb96 minifier: Omit dce `undefined` which can be a shadowed
variable (#4073) (Boshen)
- 150f4d9 napi/transform: Display error with spanned messages (Boshen)

### Performance

- 7fe2a2f parser: Do not copy comments (#4067) (overlookmotel)

### Refactor

- 8fa98e0 ast: Inline trivial functions and shorten code (#4066)
(overlookmotel)
- 65aee19 isolated-declarations: Reorganize scope tree (#4070) (Luca
Bruno)

Co-authored-by: Boshen <Boshen@users.noreply.github.com>
@MichaelMitchell-at MichaelMitchell-at deleted the 07-06-fix_isolated_declarations_dont_report_an_error_for_parameters_if_they_are_objectpattern_or_arraypattern_with_an_explicit_type branch July 6, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-isolated-declarations Isolated Declarations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants