From 8bcc2dea2b10e1d61096d085353159628835f9f7 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 12 Jun 2013 09:19:54 +0200 Subject: [PATCH] Small fix in tst_qqmlecmascript EVALUATE_ERROR is supposed to return true if an exception was caught Change-Id: I8371206e4a4e9d0c3d40ef09cf61d28ed19e40aa Reviewed-by: Lars Knoll --- tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index d438fd1..f49b85a 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -2180,9 +2180,9 @@ static inline bool evaluate_error(QV8Engine *engine, v8::Handle o, c function->call(engine->global(), args, 1); } catch (QV4::Exception &e) { e.accept(ctx); - return false; + return true; } - return true; + return false; } static inline bool evaluate_value(QV8Engine *engine, v8::Handle o, -- 2.7.4