[js] trailing comma in array should not be regarded as an undefined member