Reached the end of the current function without returning a value.

#6053   Run-time catchable error

Reached the end of the current function without returning a value.

Explanation

This happens when an internal value-returning function is about to hit the end without returning.