[Interest] ECMA "strict mode" in QtScript?

Christian Schneider mail at chrschn.de
Fri Feb 22 12:09:13 CET 2013


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130222/867e73f5/attachment.sig>


More information about the Interest mailing list