Fix spurious unhandled RangeError: Thread ran too long!
Fix spurious unhandled RangeError: Thread ran too long!

RangeError was being thrown both when entering and when exiting a function call if the thread time limit has been exceed.

Move the check so it is only done upon entry to the call, not upon return.

google/CodeCity,NeilFraser/CodeCity,google/CodeCity,google/CodeCity,NeilFraser/CodeCity,NeilFraser/CodeCity,NeilFraser/CodeCity,google/CodeCity