Value thisObject = base ? Value::fromObject(base) : Value::undefinedValue();
if (o == context->engine->evalFunction && name == context->engine->id_eval)
- return static_cast<EvalFunction *>(o)->call(context, thisObject, args, argc, true);
+ return static_cast<EvalFunction *>(o)->evalCall(context, thisObject, args, argc, true);
return o->call(context, thisObject, args, argc);
}
Value DatePrototype::method_now(ExecutionContext *ctx)
{
+ Q_UNUSED(ctx);
double t = currentTime();
return Value::fromDouble(t);
}
name = scope->engine->id_eval;
}
-Value EvalFunction::call(ExecutionContext *context, Value /*thisObject*/, Value *args, int argc, bool directCall)
+Value EvalFunction::evalCall(ExecutionContext *context, Value /*thisObject*/, Value *args, int argc, bool directCall)
{
if (argc < 1)
return Value::undefinedValue();
Value EvalFunction::call(ExecutionContext *context, Value thisObject, Value *args, int argc)
{
// indirect call
- return call(context, thisObject, args, argc, false);
+ return evalCall(context, thisObject, args, argc, false);
}
QQmlJS::VM::Function *EvalFunction::parseSource(QQmlJS::VM::ExecutionContext *ctx,
bool inheritContext);
virtual Value call(ExecutionContext *context, Value thisObject, Value *args, int argc);
- Value call(ExecutionContext *context, Value thisObject, Value *args, int argc, bool directCall);
+ Value evalCall(ExecutionContext *context, Value thisObject, Value *args, int argc, bool directCall);
};
struct GlobalFunctions
Value JsonObject::method_stringify(ExecutionContext *ctx)
{
+ Q_UNUSED(ctx);
assert(!"Not implemented");
}