aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsapi/qjsprimitivevalue.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-07-19 14:00:28 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-07-21 13:19:04 +0200
commite97f8cabc8d4f14172354a20ddd96a87d5a3c205 (patch)
tree5cc8fd38a97d0a912f3ea80152ea780654b5930e /src/qml/jsapi/qjsprimitivevalue.cpp
parenteed7b3f4e7fe53d3a8c92a0413e42a14a80e34bc (diff)
QmlCompiler: Implement Math.pow()
Also, add missing positive infinity to test data. Pick-to: 6.4 Fixes: QTBUG-104745 Change-Id: I958aca672cca8cc83c540ed3ea75b08e70eb90fd Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsapi/qjsprimitivevalue.cpp')
-rw-r--r--src/qml/jsapi/qjsprimitivevalue.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qml/jsapi/qjsprimitivevalue.cpp b/src/qml/jsapi/qjsprimitivevalue.cpp
index e094972c3a..772ae49db8 100644
--- a/src/qml/jsapi/qjsprimitivevalue.cpp
+++ b/src/qml/jsapi/qjsprimitivevalue.cpp
@@ -280,5 +280,16 @@ QString QJSPrimitiveValue::toString(double d)
return result;
}
+/*!
+ \fn double QQmlPrivate::jsExponentiate(double base, double exponent)
+ \internal
+ \since 6.4
+
+ Performs JavaScript's Number::exponentiate operation on \a base and
+ \a exponent, and returns the result.
+
+ See https://tc39.es/ecma262/multipage/ecmascript-data-types-and-values.html#sec-numeric-types-number-exponentiate
+ */
+
QT_END_NAMESPACE