From 3dc7b5ddf6de5d9d000f443170d9a33e3d32bda3 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 12 Nov 2014 13:55:55 +0100 Subject: Cleanup exception catching code Change-Id: I85afd5758f72e19c280dc196601ee145f0c25f01 Reviewed-by: Simon Hausmann --- src/qml/jsapi/qjsengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsapi/qjsengine.cpp') diff --git a/src/qml/jsapi/qjsengine.cpp b/src/qml/jsapi/qjsengine.cpp index 0d2b394cd6..427575b386 100644 --- a/src/qml/jsapi/qjsengine.cpp +++ b/src/qml/jsapi/qjsengine.cpp @@ -307,7 +307,7 @@ QJSValue QJSEngine::evaluate(const QString& program, const QString& fileName, in if (!scope.engine->hasException) result = script.run(); if (scope.engine->hasException) - result = ctx->catchException(); + result = v4->catchException(); if (ctx != v4->rootContext) v4->popContext(); return new QJSValuePrivate(v4, result); -- cgit v1.2.3