-
-
Notifications
You must be signed in to change notification settings - Fork 755
feat(semantic): check redeclaration of variable declaration and function declaration in the block scope #10074
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
Merged
graphite-app
merged 1 commit into
main
from
03-27-feat_semantic_check_redeclaration_of_variable_declaration_and_function_declaration_in_the_block_scope
Mar 28, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
Author
CodSpeed Instrumentation Performance ReportMerging #10074 will not alter performanceComparing Summary
|
9e394ed to
40f0f10
Compare
abe9931 to
fd0b8eb
Compare
bee4271 to
1c741db
Compare
1c741db to
e81ae1e
Compare
Dunqing
commented
Mar 27, 2025
e81ae1e to
50b2970
Compare
fd0b8eb to
6687f5b
Compare
50b2970 to
dde0a96
Compare
dde0a96 to
51660e6
Compare
This was referenced Mar 28, 2025
Contributor
Merge activity
|
graphite-app bot
pushed a commit
that referenced
this pull request
Mar 28, 2025
…ion declaration in the block scope (#10074) close: #10050 close: #10051 close: #10055 close: #10056 This PR causes a lot of test262 tests to fail, all are expected. The reason is that the test262 test runner has a little incorrect, see #10057. And also produces a lot of duplicate errors, which will be removed in #10078.
51660e6 to
0b5161c
Compare
graphite-app bot
pushed a commit
that referenced
this pull request
Mar 28, 2025
…ith TypeScript (#10086) The `Symbol` is based on the `TypeScript` implementation, but `TypeScript` doesn't support non-strict mode. So we tweaked the implementation to support non-strict mode before, but that held us back from adding symbol id for `declare function`, because `declare function oxc(): number; declare function oxc(): void` is valid, but we have no idea except introducing more symbol flags by to check whether it is a declare function. But introducing more symbol flags will lead to greater discrepancies between our implementation and `TypeScript`. #10074 has re-implemented the function redeclaration check in `checker` so that this PR can make a change to align with `TypeScript` implementation without leading to unexpected errors. A lot of error messages are removed in snapshots, because they are all duplicated, which was introduced by #10074
graphite-app bot
pushed a commit
that referenced
this pull request
Mar 28, 2025
…ion declaration in the block scope (#10074) close: #10050 close: #10051 close: #10055 close: #10056 This PR causes a lot of test262 tests to fail, all are expected. The reason is that the test262 test runner has a little incorrect, see #10057. And also produces a lot of duplicate errors, which will be removed in #10078.
0b5161c to
5f8c64c
Compare
graphite-app bot
pushed a commit
that referenced
this pull request
Mar 28, 2025
…ith TypeScript (#10086) The `Symbol` is based on the `TypeScript` implementation, but `TypeScript` doesn't support non-strict mode. So we tweaked the implementation to support non-strict mode before, but that held us back from adding symbol id for `declare function`, because `declare function oxc(): number; declare function oxc(): void` is valid, but we have no idea except introducing more symbol flags by to check whether it is a declare function. But introducing more symbol flags will lead to greater discrepancies between our implementation and `TypeScript`. #10074 has re-implemented the function redeclaration check in `checker` so that this PR can make a change to align with `TypeScript` implementation without leading to unexpected errors. A lot of error messages are removed in snapshots, because they are all duplicated, which was introduced by #10074
…ion declaration in the block scope (#10074) close: #10050 close: #10051 close: #10055 close: #10056 This PR causes a lot of test262 tests to fail, all are expected. The reason is that the test262 test runner has a little incorrect, see #10057. And also produces a lot of duplicate errors, which will be removed in #10078.
5f8c64c to
370266c
Compare
graphite-app bot
pushed a commit
that referenced
this pull request
Mar 28, 2025
…ith TypeScript (#10086) The `Symbol` is based on the `TypeScript` implementation, but `TypeScript` doesn't support non-strict mode. So we tweaked the implementation to support non-strict mode before, but that held us back from adding symbol id for `declare function`, because `declare function oxc(): number; declare function oxc(): void` is valid, but we have no idea except introducing more symbol flags by to check whether it is a declare function. But introducing more symbol flags will lead to greater discrepancies between our implementation and `TypeScript`. #10074 has re-implemented the function redeclaration check in `checker` so that this PR can make a change to align with `TypeScript` implementation without leading to unexpected errors. A lot of error messages are removed in snapshots, because they are all duplicated, which was introduced by #10074
This was referenced Apr 1, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

close: #10050
close: #10051
close: #10055
close: #10056
This PR causes a lot of test262 tests to fail, all are expected. The reason is that the test262 test runner has a little incorrect, see #10057. And also produces a lot of duplicate errors, which will be removed in #10078.