aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2015-02-27 16:39:21 +0100
committerAleix Pol Gonzalez <aleixpol@kde.org>2015-03-16 12:38:34 +0000
commit84155a8e1a6250d3e4b0949a42464eee5dfef537 (patch)
tree15f0062686689921cac3bbf08e3a5ddcb37d0437
parent6767fcfaf234bc3e0f92f156fa68266d0aac7d4a (diff)
Fix warning
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>
-rw-r--r--src/qml/qml/v8/qqmlbuiltinfunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/v8/qqmlbuiltinfunctions.cpp b/src/qml/qml/v8/qqmlbuiltinfunctions.cpp
index 8e5cbb8e96..0522e4c0ed 100644
--- a/src/qml/qml/v8/qqmlbuiltinfunctions.cpp
+++ b/src/qml/qml/v8/qqmlbuiltinfunctions.cpp
@@ -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;