Help~! array.unshift

seek for help again…
i want to add an element from an array to the beginning of another array, using unshift method, but it turns to cause my pc hangs…

i use two ways, but both are not the solution.
help me…

//method1:
temp_array[0]=arrayName[p][k];
openList.unshift(temp_array[0]);

//method2:
openList.unshift(arrayName[p][k]);