Commit 339797a
fix(detector): reject non-string specifiers in dynamic import matcher
Guard visitorDynamicImport against `import(0)` / `import(true)` so a
numeric or boolean literal can't flow through the walker as an alias and
crash downstream string checks (e.g. isBuiltin's moduleName.startsWith).
Addresses Copilot review feedback on PR #268.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent e3d455b commit 339797a
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
208 | 216 | | |
209 | 217 | | |
210 | 218 | | |
| |||
0 commit comments