From 44b87aeff6a7a7885583ec971fcb86c106f83785 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 9 Dec 2014 16:43:09 +0100 Subject: [PATCH] Fix typeof() for numbers fixes #8028 --- lib/base/scriptutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/scriptutils.cpp b/lib/base/scriptutils.cpp index e91a700f9..f5fceb72a 100644 --- a/lib/base/scriptutils.cpp +++ b/lib/base/scriptutils.cpp @@ -217,7 +217,7 @@ Type::Ptr ScriptUtils::TypeOf(const Value& value) case ValueEmpty: return Type::GetByName("Object"); case ValueNumber: - return Type::GetByName("double"); + return Type::GetByName("Number"); case ValueString: return Type::GetByName("String"); case ValueObject: -- 2.40.0