void Object::execute(QScriptContextPrivate *context) { #ifndef Q_SCRIPT_NO_EVENT_NOTIFY engine()->notifyFunctionEntry(context); #endif QScriptValueImpl value; if (context->argumentCount() > 0) value = engine()->toObject(context->argument(0)); else value.invalidate(); if (! value.isValid()) newObject(&value); context->setReturnValue(value); #ifndef Q_SCRIPT_NO_EVENT_NOTIFY engine()->notifyFunctionExit(context); #endif }