diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/v4/main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/v4/main.cpp b/tools/v4/main.cpp index ad91b88cda..8e9a880ccd 100644 --- a/tools/v4/main.cpp +++ b/tools/v4/main.cpp @@ -72,9 +72,8 @@ using namespace QV4; struct Print: FunctionObject { - Print(ExecutionContext *scope): FunctionObject(scope) { + Print(ExecutionContext *scope): FunctionObject(scope, QStringLiteral("print")) { vtbl = &static_vtbl; - name = scope->engine->newString("print"); } static ReturnedValue call(Managed *, CallData *callData) @@ -97,10 +96,9 @@ DEFINE_MANAGED_VTABLE(Print); struct GC: public FunctionObject { GC(ExecutionContext* scope) - : FunctionObject(scope) + : FunctionObject(scope, QStringLiteral("gc")) { vtbl = &static_vtbl; - name = scope->engine->newString("gc"); } static ReturnedValue call(Managed *m, CallData *) { |