Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
Description
The following code:
QJSEngine e; QJSValue o = e.newObject(); e.globalObject().setProperty(QStringLiteral("Blub"), o); QJSValue r = e.evaluate(QStringLiteral("new Blub()")); qWarning() << r.toString();
prints only: Type Error: Type Error.
QScriptEngine instead printed: 'Blub' cannot be instantiated.
Would it be possible to print such a nice error message in QJSEngine as well?
Attachments
Issue Links
- relates to
-
QBS-913 QtScript dependency needs to be removed
- Closed