Re: [Qbs] Using ES6 templates string in qbs files

2024-06-26 Thread Иван Комиссаров
Before Qbs passes the JS code to the engine, it parses it using the QML parser (even for pure js files, not sure why though). We use a very old version of a parser copied from Qt which doesn’t support all JS features. Ivan > 26 июня 2024 г., в 14:58, Maximilian Hrabowski > написал(а): > > 

[Qbs] Using ES6 templates string in qbs files

2024-06-26 Thread Maximilian Hrabowski
Hi all, I thought qbs 2.x switched to latest QJSEngine which support ES7. While in QML code it is no problem to use template strings `…` , in qbs files I get a syntax error, e.g.: console.log(`the path is ${path}`); won’t work. Are my expectations wrong? Best regards, Max