diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-05-03 14:14:57 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-03 14:40:38 +0200 |
commit | e537722604e41577dbf5625a35542a88d2576d63 (patch) | |
tree | 8dcade24c43e2e02fe5d01f3ec161621cc28fc52 /src/qml/qml/qqmljavascriptexpression.cpp | |
parent | bf51873870f94f56e8dccf25fea67b120f2db98f (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/qqmljavascriptexpression.cpp')
-rw-r--r-- | src/qml/qml/qqmljavascriptexpression.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/qml/qml/qqmljavascriptexpression.cpp b/src/qml/qml/qqmljavascriptexpression.cpp index 558a8c78dd..031a20b8a7 100644 --- a/src/qml/qml/qqmljavascriptexpression.cpp +++ b/src/qml/qml/qqmljavascriptexpression.cpp @@ -91,7 +91,6 @@ void QQmlDelayedError::setErrorDescription(const QString &description) void QQmlDelayedError::convertMessageToError(QQmlEngine *engine) const { if (!m_message.IsEmpty() && engine) { - v8::HandleScope handle_scope; QQmlExpressionPrivate::exceptionToError(m_message, m_error); qPersistentDispose(m_message); } @@ -336,8 +335,6 @@ QQmlJavaScriptExpression::evalFunction(QQmlContextData *ctxt, QObject *scope, QQmlEngine *engine = ctxt->engine; QQmlEnginePrivate *ep = QQmlEnginePrivate::get(engine); - v8::HandleScope handle_scope; - v8::TryCatch tc; v8::Local<v8::Object> scopeobject = ep->v8engine()->qmlScope(ctxt, scope); v8::Local<v8::Script> script = ep->v8engine()->qmlModeCompile(code, codeLength, filename, line); @@ -377,8 +374,6 @@ QQmlJavaScriptExpression::evalFunction(QQmlContextData *ctxt, QObject *scope, QQmlEngine *engine = ctxt->engine; QQmlEnginePrivate *ep = QQmlEnginePrivate::get(engine); - v8::HandleScope handle_scope; - v8::TryCatch tc; v8::Local<v8::Object> scopeobject = ep->v8engine()->qmlScope(ctxt, scope); v8::Local<v8::Script> script = ep->v8engine()->qmlModeCompile(code, filename, line); |