Fix #12199. Handle iteration over inherited properties in oldIE. Close
gh-1196.