Is there no array subscript (out of bounds) issues in javascript? Before calling GLEW.errorString(), we'll check from array, that the string isn't already allocated.