function getReturnContext(state) {
	let context = state.tryContext;

	while (context) {
		if (context.hasFinalizer && context.position !== "finally") {
			return context;
		}
		context = context.upper;
	}

	return state;
}
Gets a context for a `return` statement. There is just one special case:
if there is a `try` statement with a `finally` block, because that alters
how `return` behaves; otherwise, this just passes through the given state.
@param {CodePathState} state The state to search within
@returns {TryContext|CodePathState} A context for a `return` statement.