fix: loc.index
of some nodes is wrongly enumerable.
#14595
Merged
loc.index
of some nodes is wrongly enumerable.
#14595