mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-07 08:26:11 +00:00
* fix(go): use loose equality for Array.find() null checks (#1346, #1366) Array.find() returns undefined (not null) when no match is found, but the code checked with === null / !== null which fails to intercept it. This caused "Cannot read properties of undefined (reading 'type')" and "Cannot read properties of undefined (reading 'namedChildren')" crashes on Go files containing plain for loops, make(chan T), or other patterns where the expected tree-sitter node type is absent. * refactor(go): use strict undefined checks for Array.find() results Address review feedback: Array.find() returns undefined by spec, so check with === undefined / !== undefined instead of loose == null. |
||
|---|---|---|
| .. | ||
| go-captures-smoke.test.ts | ||
| go-hooks.test.ts | ||
| go-imports.test.ts | ||
| go-package-siblings.test.ts | ||
| go-range-binding-null-guard.test.ts | ||
| go-type-binding.test.ts | ||