karatelabs / karate

Test Automation Made Simple
https://karatelabs.github.io/karate
MIT License
8.33k stars 1.95k forks source link

Question/Improvement Can some point on the future use let/const on js files? #2274

Closed carlos-vargas-pplus closed 1 year ago

carlos-vargas-pplus commented 1 year ago

Hello,

Loving the karate framework so far. However, I found I can not use let/const keywords on JavaScript and karate-config.js files that I call with karate.call (can use only var). It is planned on the future to be support those keywords?

ptrthomas commented 1 year ago

@carlos-vargas-pplus let and const should work as far as I know. we can re-open if you follow this process: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue

that said, I personally don't consider this a priority, so we will encourage code contributions.