How to pass a vec4 array to shader uniform in version > 1.9?

in creator v1.9.3 i can pass an array to shader uniform without problems.
I do it like that:

in shader code

uniform vec4 test[3];

in js code

this._program.setUniformLocationWith4fv(“test”,[1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0])

or if i want to set individual elements of the array i should do that

this._program.setUniformLocationWith4f(“test[0]”, 1.0, 0.0, 0.0, 0.0)
this._program.setUniformLocationWith4f(“test[1]”, 0.0, 1.0, 0.0, 0.0)
this._program.setUniformLocationWith4f(“test[2]”, 0.0, 0.0, 1.0, 0.0)

It works correctly.

I don’t see ways to do it in v2.4. Where did i mistake and what should i do?