aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmljs/qmljs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmljs/qmljs.cpp')
-rw-r--r--tools/qmljs/qmljs.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/qmljs/qmljs.cpp b/tools/qmljs/qmljs.cpp
index f4a561fac6..ef0a3622f9 100644
--- a/tools/qmljs/qmljs.cpp
+++ b/tools/qmljs/qmljs.cpp
@@ -66,8 +66,8 @@ struct Print: FunctionObject
{
struct Data : Heap::FunctionObject {
Data(ExecutionContext *scope)
- : Heap::FunctionObject(scope, QStringLiteral("print")) {
- setVTable(staticVTable());
+ : Heap::FunctionObject(scope, QStringLiteral("print"))
+ {
}
};
V4_OBJECT(FunctionObject)
@@ -93,7 +93,6 @@ struct GC: public FunctionObject
Data(ExecutionContext *scope)
: Heap::FunctionObject(scope, QStringLiteral("gc"))
{
- setVTable(staticVTable());
}
};