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 --- tools/qmljs/qmljs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/qmljs/qmljs.cpp b/tools/qmljs/qmljs.cpp index 8e270fc61b..5d7d065b50 100644 --- a/tools/qmljs/qmljs.cpp +++ b/tools/qmljs/qmljs.cpp @@ -208,7 +208,7 @@ int main(int argc, char *argv[]) result = script.run(); if (scope.engine->hasException) { QV4::StackTrace trace; - QV4::ScopedValue ex(scope, ctx->catchException(&trace)); + QV4::ScopedValue ex(scope, scope.engine->catchException(&trace)); showException(ctx, ex, trace); return EXIT_FAILURE; } -- cgit v1.2.3