diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-06-12 15:25:20 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-06-12 15:56:20 +0200 |
commit | 8a91b88a8e3a03d087bdc5684082acdd46461a51 (patch) | |
tree | f6ad94cfa8001e1b8fd2eedbecb2bb18160fa2bb /tests/auto/qml/qqmlecmascript/testtypes.cpp | |
parent | 728879def455979bb091773d4dedd4ee3277e635 (diff) |
Remove last traces of v8 API and v8 compatibility layer
The debugger and profiler service remain as bigger parts that need to
be ported properly to v4.
Change-Id: I68e72d6db66fe497eb58ed60df417ffe4662d115
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/testtypes.cpp')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/testtypes.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/qml/qqmlecmascript/testtypes.cpp b/tests/auto/qml/qqmlecmascript/testtypes.cpp index 8bd5d81988..64aac83c02 100644 --- a/tests/auto/qml/qqmlecmascript/testtypes.cpp +++ b/tests/auto/qml/qqmlecmascript/testtypes.cpp @@ -104,10 +104,9 @@ public: void setWidth(int) { } }; -void MyQmlObject::v8function(QQmlV4Function *) +void MyQmlObject::v8function(QQmlV4Function *function) { - const char *error = "Exception thrown from within QObject slot"; - v8::ThrowException(v8::Exception::Error(v8::String::New(error))); + QV8Engine::getV4(function->engine())->current->throwError(QStringLiteral("Exception thrown from within QObject slot")); } static QJSValue script_api(QQmlEngine *engine, QJSEngine *scriptEngine) |