JS: Static analyzer optimizes away iterators

Notices that the static analyzer quite often optimizes away iterators:
“TypeError: it.iterator is not a function”

Disabling the static analyzer solves the problems.
Is this a known issue? Best way to deal with it?

That might be a sign of a compiler issue. Could you create a sample?