aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvme.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/qml/qqmlvme.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/qml/qqmlvme.cpp')
-rw-r--r--src/qml/qml/qqmlvme.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/qml/qml/qqmlvme.cpp b/src/qml/qml/qqmlvme.cpp
index 29cc8c4298..4c24547a7f 100644
--- a/src/qml/qml/qqmlvme.cpp
+++ b/src/qml/qml/qqmlvme.cpp
@@ -339,9 +339,6 @@ QObject *QQmlVME::run(QList<QQmlError> *errors,
QQmlEngine *engine = states.at(0).context->engine;
QQmlEnginePrivate *ep = QQmlEnginePrivate::get(engine);
- // Need a v8 handle scope and execution context for StoreVar instructions.
- v8::HandleScope handleScope;
-
int status = -1; // needed for dbus
QQmlPropertyPrivate::WriteFlags flags = QQmlPropertyPrivate::BypassInterceptor |
QQmlPropertyPrivate::RemoveBindingOnAliasWrite;
@@ -1242,8 +1239,6 @@ v8::Persistent<v8::Object> QQmlVME::run(QQmlContextData *parentCtxt, QQmlScriptD
ctxt->importedScripts << run(ctxt, script->scripts.at(ii)->scriptData());
}
- v8::HandleScope handle_scope;
-
v8::TryCatch try_catch;
if (!script->isInitialized())
script->initialize(parentCtxt->engine);