On Wed Nov 30 10:36:48 2022 +0000, Jacek Caban wrote:
I think this should be checked earlier, before `array_bounds_from_stack()` call. This would avoid creating the new array and my testing confirms that's what Windows does (if I try to use "abc" as redim argument, VBSE_ARRAY_LOCKED is still returned on Windows rather than `to_int()` error).
With a couple more tests, apparently "redim preserve" and "redim" are different in that regard. It's trivial to fix, I added todo_wine's for now, because it's unrelated to the original fix.