### Godot version

4.0 beta17

### System information

Windows10

### Issue description

call `"".split()`
Is there an infinite loop inside? Function does not return.

### Steps to reproduce

"".split()

### Minimal reproduction project

N/A
if (length() == 0) {
		return p_right.length() != 0;
	}
	return is_str_less(get_data(), p_right.get_data());
}
bool CharString::operator==(const CharString &p_right) const {
	if (length() == 0) {
		
		return p_right.length() == 0;
	} else if (p_right.length() == 0) {
		
		return false;
	}
	return strcmp(ptr(), p_right.ptr()) == 0;
}
CharString &CharString::operator+=(char p_char) {
	const int lhs_len = length();
	resize(lhs_len + 2);
	char *dst = ptrw();
	dst[lhs_len] = p_char;
	dst[lhs_len + 1] = 0;
	return *this;
}
void CharString::operator=(const char *p_cstr) {