Problem with setting value of type list from javascript inline script

Hello
I am trying to define a list value for variable inside javascript inline script

However in the process instance is stored something, which is not a list and cannot be read through the REST API.

image

What am I doing wrong?
Thanks in advance