diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmljs/qmljs.cpp | 5 |
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()); } }; |