Hi everybody. When using QtScript in an application, is there a way to enable strict mode for script code, as the statement "use strict" should do [1]? A simple experiment with Qt 4.8 indicates that the "use strict" statement does not have any effect.
There are no hints on the strict mode in the QtScript documentation, however the ECMA specification linked from Qt's docs clearly explains the strict mode. I haven't tried it with Qt 5 yet, however the online docs also do not give any hint about the strict mode [2], QScriptValue does not have a "strict" flag, etc (in fact, the QtScript docs for Qt 4.8 and 5.0 look identical to me). Does anyone know what's the status on this matter? Cheer, Christian [1] http://ecma-international.org/ecma-262/5.1/#sec-10.1.1 [2] https://qt-project.org/doc/qt-5.0/qtscript/qtscript-index.html
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest