Skip to content

Conversation

@JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Jan 30, 2026

Per rbuckton/ecma262#14, using declarations are not allowed if they are nested directly within the case clauses.

Since we already have a test on this case (https://github.com/tc39/test262/blob/061c0c3ccea8c6d98fa455370df022c572540c42/test/language/statements/using/syntax/using-invalid-switchstatement-caseclause.js), some tests in the staging folder become in conflict with it, and thus they should be removed. It is likely that they are sourced from an early V8 implementation which did not forbid using within case clause.

@JLHwung JLHwung requested review from a team as code owners January 30, 2026 15:30
@rmahdav
Copy link
Contributor

rmahdav commented Jan 30, 2026

I uploaded a PR to update the tests previously #4464 and I totally forgot about about. We can close that PR, when this one merges. Thanks for the clean up.

@JLHwung
Copy link
Contributor Author

JLHwung commented Jan 30, 2026

I uploaded a PR to update the tests previously #4464 and I totally forgot about about. We can close that PR, when this one merges. Thanks for the clean up.

Thanks for the heads-up. Glad to know there is already a PR out there. So this PR is a duplicate of #4464. Since that PR can be merged cleanly, I will close mine.

@JLHwung JLHwung closed this Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants