Skip to content

Conversation

@Dunqing
Copy link
Member

@Dunqing Dunqing commented Mar 27, 2025

(function n(n) {})()

The function n symbol will insert into the function itself scope, which causes param n to be considered a redeclaration, but it is not.

Copy link
Member Author

Dunqing commented Mar 27, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Dunqing Dunqing force-pushed the 03-27-fix_semantic_define_a_variable_in_a_function_expression_whose_name_is_the_same_as_the_function_name_which_is_considered_a_redeclaration branch from abe9931 to fd0b8eb Compare March 27, 2025 12:31
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 27, 2025

CodSpeed Instrumentation Performance Report

Merging #10077 will create unknown performance changes

Comparing 03-27-fix_semantic_define_a_variable_in_a_function_expression_whose_name_is_the_same_as_the_function_name_which_is_considered_a_redeclaration (6687f5b) with main (b804f7c)

Summary

🆕 33 new benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
🆕 codegen[checker.ts] N/A 22.6 ms N/A
🆕 codegen_sourcemap[checker.ts] N/A 65.6 ms N/A
🆕 isolated-declarations[vue-id.ts] N/A 58.3 ms N/A
🆕 lexer[RadixUIAdoptionSection.jsx] N/A 21.1 µs N/A
🆕 lexer[antd.js] N/A 24.8 ms N/A
🆕 lexer[cal.com.tsx] N/A 5.9 ms N/A
🆕 lexer[checker.ts] N/A 14.8 ms N/A
🆕 lexer[pdf.mjs] N/A 3.9 ms N/A
🆕 linter[RadixUIAdoptionSection.jsx] N/A 2.7 ms N/A
🆕 linter[cal.com.tsx] N/A 1.2 s N/A
🆕 linter[checker.ts] N/A 3 s N/A
🆕 mangler[antd.js] N/A 16 ms N/A
🆕 mangler[react.development.js] N/A 294.5 µs N/A
🆕 mangler[typescript.js] N/A 39.7 ms N/A
🆕 minifier[antd.js] N/A 165.6 ms N/A
🆕 minifier[react.development.js] N/A 1.8 ms N/A
🆕 minifier[typescript.js] N/A 291.6 ms N/A
🆕 estree[checker.ts] N/A 96.1 ms N/A
🆕 parser[RadixUIAdoptionSection.jsx] N/A 92.4 µs N/A
🆕 parser[antd.js] N/A 113.5 ms N/A
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

@graphite-app
Copy link
Contributor

graphite-app bot commented Mar 28, 2025

Merge activity

…is the same as the function name which is considered a redeclaration (#10077)

```js
(function n(n) {})()
```

The function `n` symbol will insert into the function itself scope, which causes param `n` to be considered a redeclaration, but it is not.
@graphite-app graphite-app bot force-pushed the 03-26-refactor_semantic_store_symbol_information_as_the_first_entry_in_symbol_declarations_when_it_is_redeclared branch from 9e5ecec to cd1f035 Compare March 28, 2025 04:14
@graphite-app graphite-app bot requested a review from overlookmotel as a code owner March 28, 2025 04:14
@graphite-app graphite-app bot force-pushed the 03-27-fix_semantic_define_a_variable_in_a_function_expression_whose_name_is_the_same_as_the_function_name_which_is_considered_a_redeclaration branch from fd0b8eb to 6687f5b Compare March 28, 2025 04:14
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Mar 28, 2025
Base automatically changed from 03-26-refactor_semantic_store_symbol_information_as_the_first_entry_in_symbol_declarations_when_it_is_redeclared to main March 28, 2025 04:28
@graphite-app graphite-app bot merged commit 6687f5b into main Mar 28, 2025
26 checks passed
@graphite-app graphite-app bot deleted the 03-27-fix_semantic_define_a_variable_in_a_function_expression_whose_name_is_the_same_as_the_function_name_which_is_considered_a_redeclaration branch March 28, 2025 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-semantic Area - Semantic C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants