Abdulghaphor Hajjieh commented
Please consider updating the ExtendScript engine to utilize current standards. at the very least, ES6 would be greatly appreciated.
It only supports ES3 right now, which is very old, on the other hand,
AdobeXD supports ES5 above, which is very good.
It will be wonderful if you have that feature support.