aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qquickworkerscript.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-05-03 14:14:57 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-03 14:40:38 +0200
commite537722604e41577dbf5625a35542a88d2576d63 (patch)
tree8dcade24c43e2e02fe5d01f3ec161621cc28fc52 /src/qml/types/qquickworkerscript.cpp
parentbf51873870f94f56e8dccf25fea67b120f2db98f (diff)
Remove v8::HandleScope
This class never made sense with v4... :) Change-Id: Id597d791d1adf52cc821d6d46f57cb24d1acd343 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/types/qquickworkerscript.cpp')
-rw-r--r--src/qml/types/qquickworkerscript.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/qml/types/qquickworkerscript.cpp b/src/qml/types/qquickworkerscript.cpp
index 8a47baeb84..2fce25b0fc 100644
--- a/src/qml/types/qquickworkerscript.cpp
+++ b/src/qml/types/qquickworkerscript.cpp
@@ -223,8 +223,6 @@ void QQuickWorkerScriptEnginePrivate::WorkerEngine::init()
"}); "\
"})"
- v8::HandleScope handle_scope;
-
{
v8::Local<v8::Script> onmessagescript = v8::Script::New(v8::String::New(CALL_ONMESSAGE_SCRIPT));
onmessage = qPersistentNew<v8::Function>(v8::Handle<v8::Function>::Cast(onmessagescript->Run()));
@@ -342,8 +340,6 @@ void QQuickWorkerScriptEnginePrivate::processMessage(int id, const QByteArray &d
if (!script)
return;
- v8::HandleScope handle_scope;
-
v8::Handle<v8::Value> value = QV8Worker::deserialize(data, workerEngine);
v8::TryCatch tc;
@@ -369,8 +365,6 @@ void QQuickWorkerScriptEnginePrivate::processLoad(int id, const QUrl &url)
QString sourceCode = QString::fromUtf8(data);
QQmlScript::Parser::extractPragmas(sourceCode);
- v8::HandleScope handle_scope;
-
WorkerScript *script = workers.value(id);
if (!script)
return;
@@ -716,7 +710,6 @@ bool QQuickWorkerScript::event(QEvent *event)
if (engine) {
WorkerDataEvent *workerEvent = static_cast<WorkerDataEvent *>(event);
QV8Engine *v8engine = QQmlEnginePrivate::get(engine)->v8engine();
- v8::HandleScope handle_scope;
v8::Handle<v8::Value> value = QV8Worker::deserialize(workerEvent->data(), v8engine);
emit message(QQmlV4Handle::fromV8Handle(value));
}