I am getting " Unexpected token" error while using spread operator in script which is supposed to be ran by k6.
K6 doc says we can script it using javascript es6 version. Any thoughts?
Hi @rlal
This is not currently supported. Can you add a +1 to the issue JavaScript spread operator throws error with params object · Issue #824 · grafana/k6 · GitHub? It can help prioritize the issue.
There is a workaround using Object.assign
you can find in JavaScript spread operator throws error with params object · Issue #824 · grafana/k6 · GitHub.
Thanks for bringing this to our attention.
Cheers!
Hi @rlal when using object.assign we have eslint in our code it is throwing an error to use spread operator