diff options
Diffstat (limited to 'src/qml/jsapi/qjsengine.cpp')
-rw-r--r-- | src/qml/jsapi/qjsengine.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qml/jsapi/qjsengine.cpp b/src/qml/jsapi/qjsengine.cpp index 57647a49d3..d42cabd81c 100644 --- a/src/qml/jsapi/qjsengine.cpp +++ b/src/qml/jsapi/qjsengine.cpp @@ -269,9 +269,8 @@ QJSValue QJSEngine::evaluate(const QString& program, const QString& fileName, in script.inheritContext = true; script.parse(); result = script.run(); - } catch (QV4::Exception& ex) { - ex.accept(ctx); - result = ex.value(); + } catch (...) { + result = ctx->catchException(); } return new QJSValuePrivate(d->m_v4Engine, result); } |