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 <hrabow...@bee360.com> 
> написал(а):
> 
> 
> 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
> _______________________________________________
> Qbs mailing list
> Qbs@qt-project.org
> https://lists.qt-project.org/listinfo/qbs
_______________________________________________
Qbs mailing list
Qbs@qt-project.org
https://lists.qt-project.org/listinfo/qbs

Reply via email to