Also fixes one auto test.
Change-Id: I165d7f00b43ee923f1f1f84cf772afa5dae0dcd7
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Value func = baseObject->get(context, name);
FunctionObject *o = func.asFunctionObject();
- if (!o)
- context->throwTypeError();
+ if (!o) {
+ QString error = QString("Property '%1' of object %2 is not a function").arg(name->toQString(), thisObject.toQString());
+ context->throwTypeError(error);
+ }
Value res = o->call(context, thisObject, args, argc);
if (result)