Details
-
Suggestion
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
4.3.0
-
None
Description
Currently you need a QScriptContext pointer to throw an error, but you don't always have that (e.g. in reimplementations of QScriptExtensionPlugin::initialize()), so then you need to call engine->currentContext()->throwError().
It would be convenient if QScriptEngine had a throwError() function also.
Attachments
Issue Links
- resulted from
-
QTBUG-15886 Deprecate QScriptEngine::currentContext()
-
- Closed
-