Unity crash while executing loop

Hi guys
Trying to execute this simple loop java script below, Unity (free ver. 3.4.2f2, Windows) is crash every time. Why? Can somebody help me please.

var reDirect : int = 4;

function Start () {
for (i=0; i<reDirect; i++){

Debug.Log("Change value for: " +i);

if (i==reDirect-1){
		i = 0; //crash at this line
		Debug.Log("Set start value: " +i);

You made an infinite loop…since you keep resetting the loop index to 0, it will never finish.