Repl: Fix issue where location  was not updated.

This was a regression from 75ca1e0b25027bb152b96245a899bd7d4b57178a

Fixes #1234
Make sure async-functions work without generators.

This was due to a typo.

Fixes #1231