Commit Graph

6 Commits

Author SHA1 Message Date
camc314 47ddedf011 fix(semantic): allow arguments in ambient declarations (#24758)
## Summary

- allow `eval` and `arguments` as direct bindings in ambient declarations
- continue reporting strict-mode errors for destructured ambient bindings
- add focused coverage for declared functions, classes, object patterns, and array patterns

## Why

The semantic checker previously identified allowed bindings by walking to a `TSDeclareFunction`. That missed other ambient declarations, including declared class constructors and methods, and produced diagnostics for TypeScript cases that require no runtime code generation.

The check now uses the existing ambient-context state and rejects only destructuring binding shapes.
2026-07-21 12:43:21 +00:00
Dunqing 4d9582d762 fix(semantic): allow arguments/eval as binding identifier names and identifier reference names in .d.ts (#17910)
Fixes: https://github.com/oxc-project/oxc/issues/17776
2026-01-12 10:03:42 +00:00
camc314 089f7b10a3 fix(semantic): allow arguments/eval as name of TSTypeAliasDeclaration, TSInterfaceDeclaration (#12291)
this stack should fix #12286
2025-07-16 07:49:37 +00:00
camc314 1bfd44feba fix(semantic): allow arguments/eval as spread argument name inside TSMethodSignature, TSFunctionType (#12290) 2025-07-16 07:49:37 +00:00
camc314 a740f3f3e8 fix(semantic): allow arguments/eval as argument name inside TSMethodSignature (#12289) 2025-07-16 07:49:37 +00:00
camc314 e82f758ff9 fix(semantic): allow arguments/eval as argument name inside TSFunctionType (#12288) 2025-07-16 01:45:12 +00:00