// Will reuse the array, overwriting existing data.
// If other parts of the program are using existing data
// in the array, this will lead to hard-to-track-down bugs.
mytracks.length = 0;
mytracks.assumeSafeAppend();

Could you give an example where it can lead bugs? Do you mean multi-thread apps?

Reply via email to