Small fix in tst_qqmlecmascript
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 12 Jun 2013 07:19:54 +0000 (09:19 +0200)
committerLars Knoll <lars.knoll@digia.com>
Wed, 12 Jun 2013 08:51:25 +0000 (10:51 +0200)
EVALUATE_ERROR is supposed to return true if an exception was caught

Change-Id: I8371206e4a4e9d0c3d40ef09cf61d28ed19e40aa
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp

index d438fd1..f49b85a 100644 (file)
@@ -2180,9 +2180,9 @@ static inline bool evaluate_error(QV8Engine *engine, v8::Handle<v8::Object> 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<v8::Object> o,