In Ace of Coders, this code errors out:
while True:
outer()
def outer():
enemies = hero.findEnemies()

If I def outer() before the while True:, it works.
Is JS-style hoisting not working? If so, can we make it work, or can we get a better error message?