From 9744e8bd423d528165f5e78704c6e017852b8e9a Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 6 May 2014 09:23:59 +0200 Subject: Convert ExecutionContext to new storage scheme Change-Id: I9fcc13da5360f37cef3149b114ed9263b9b74281 Reviewed-by: Simon Hausmann --- tools/qmljs/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/qmljs') diff --git a/tools/qmljs/main.cpp b/tools/qmljs/main.cpp index aaddfbf904..f42e8fc342 100644 --- a/tools/qmljs/main.cpp +++ b/tools/qmljs/main.cpp @@ -119,7 +119,7 @@ static void showException(QV4::ExecutionContext *ctx, const QV4::ValueRef except if (!e) { std::cerr << "Uncaught exception: " << qPrintable(ex->toString(ctx)->toQString()) << std::endl; } else { - QV4::ScopedString m(scope, ctx->engine->newString(QStringLiteral("message"))); + QV4::ScopedString m(scope, scope.engine->newString(QStringLiteral("message"))); QV4::ScopedValue message(scope, e->get(m)); std::cerr << "Uncaught exception: " << qPrintable(message->toQStringNoThrow()) << std::endl; } @@ -190,9 +190,9 @@ int main(int argc, char *argv[]) QV4::Scope scope(ctx); QV4::ScopedObject globalObject(scope, vm.globalObject); - QV4::ScopedObject print(scope, new (ctx->engine->memoryManager) builtins::Print(ctx)); + QV4::ScopedObject print(scope, new (scope.engine->memoryManager) builtins::Print(ctx)); globalObject->put(QV4::ScopedString(scope, vm.newIdentifier(QStringLiteral("print"))), print); - QV4::ScopedObject gc(scope, new (ctx->engine->memoryManager) builtins::GC(ctx)); + QV4::ScopedObject gc(scope, new (scope.engine->memoryManager) builtins::GC(ctx)); globalObject->put(QV4::ScopedString(scope, vm.newIdentifier(QStringLiteral("gc"))), gc); foreach (const QString &fn, args) { -- cgit v1.2.3