aboutsummaryrefslogtreecommitdiffstats
path: root/tools/v4/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/v4/main.cpp')
-rw-r--r--tools/v4/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/v4/main.cpp b/tools/v4/main.cpp
index 845f78117a..1e78ac3f1a 100644
--- a/tools/v4/main.cpp
+++ b/tools/v4/main.cpp
@@ -190,10 +190,10 @@ int main(int argc, char *argv[])
QV4::Object *globalObject = vm.globalObject;
QV4::Object *print = new (ctx->engine->memoryManager) builtins::Print(ctx);
- print->prototype = ctx->engine->objectPrototype;
+ print->setPrototype(ctx->engine->objectPrototype);
globalObject->put(vm.newIdentifier(QStringLiteral("print")), QV4::Value::fromObject(print));
QV4::Object *gc = new (ctx->engine->memoryManager) builtins::GC(ctx);
- gc->prototype = ctx->engine->objectPrototype;
+ gc->setPrototype(ctx->engine->objectPrototype);
globalObject->put(vm.newIdentifier(QStringLiteral("gc")), QV4::Value::fromObject(gc));
foreach (const QString &fn, args) {