var a = {1: 2, 3: 4} a.iterate("2") // expect runtime error: Iterator must be a number.