We are using AEM version 6.5.9
and our js processor config was
then we changed it to
but still it does not work. I checked the online compiler where when changed to ECMASCRIPT_2020 it started working
Does AEM not support ECMASCRIPT_2020 ?
I have written a detailed question regarding this but somehow it was marked as spam so writing this in short. Please let me know if you have any questions in comment.
Please check this link to use different processor.
try this not sure if it works for you