coroutine.js: call dump_error for exceptions due to programming errors