Fix warning
authorAleix Pol <aleixpol@kde.org>
Fri, 27 Feb 2015 15:39:21 +0000 (16:39 +0100)
committerAleix Pol Gonzalez <aleixpol@kde.org>
Mon, 16 Mar 2015 12:38:34 +0000 (12:38 +0000)
If the arguments of console.timeEnd are wrong, say it's timeEnd instead of
time.

Change-Id: Ida8a76cd452cf3aecc03e5064bbf213333d93a03
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
src/qml/qml/v8/qqmlbuiltinfunctions.cpp

index 8e5cbb8e9652efb5036b9b1984a559f0fd294b92..0522e4c0ed6d6f48007eb530f7059d6f15b52b7f 100644 (file)
@@ -1483,7 +1483,7 @@ QV4::ReturnedValue ConsoleObject::method_time(CallContext *ctx)
 QV4::ReturnedValue ConsoleObject::method_timeEnd(CallContext *ctx)
 {
     if (ctx->argc() != 1)
-        V4THROW_ERROR("console.time(): Invalid arguments");
+        V4THROW_ERROR("console.timeEnd(): Invalid arguments");
 
     QV8Engine *v8engine = ctx->d()->engine->v8Engine;