murashit_codex-panel/scripts/grit/source-shape/no-unsafe-iterator-value.grit
2026-06-27 23:43:56 +09:00

5 lines
222 B
Text

language js
`$iterator.next().value` as $stmt where {
register_diagnostic(span=$stmt, message="Avoid reading iterator.next().value directly; use for...of or inspect the typed IteratorResult first.", severity="error")
}