### 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
int len = length();
	if (len == 0) {
		return false;
	}
	int from = 0;
	if (operator[](0) == '+' || operator[](0) == '-') {
		from++;
	}
	bool exponent_found = false;
	bool period_found = false;
	bool sign_found = false;
	bool exponent_values_found = false;
	bool numbers_found = false;
	for (int i = from; i < len; i++) {