this isn’t numpy.asarray. As the question said, the js code just spontaneously started using asarray during translation. I had the same problem and I solved it by attaching a function called asarray that does absolutely nothing and returns the exact same input as the output at the beginning of the experiment.
it looks like.
asarray = function (something) {
return something;
}
This will be useful until the the psychopy team fixes this problem.