aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4numberobject_p.h
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2016-04-13 12:53:30 +0200
committerKai Uwe Broulik <kde@privat.broulik.de>2016-04-28 08:32:35 +0000
commit7a0f3269b1dc2d6de6b6ce6b478e02cca794404b (patch)
treee18b57f7c0c26d348d7bfae620c29f1f1422085c /src/qml/jsruntime/qv4numberobject_p.h
parent9e44c5594f0fb8c81c917796dd4f44a1698a6632 (diff)
Add some ECMAScript 6 Number and Math methods and properties
This adds the Number.EPSILON property, the Number.isFinite, Number.isNaN, and Math.sign methods introduced in ECMAScript 6. Change-Id: Ib16408a63c202a4ef30a14334f65ac3a1a13cfaf Reviewed-by: Michael Brasser <michael.brasser@live.com> Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4numberobject_p.h')
-rw-r--r--src/qml/jsruntime/qv4numberobject_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4numberobject_p.h b/src/qml/jsruntime/qv4numberobject_p.h
index ca6f686304..bbe22af4bb 100644
--- a/src/qml/jsruntime/qv4numberobject_p.h
+++ b/src/qml/jsruntime/qv4numberobject_p.h
@@ -87,6 +87,8 @@ struct NumberPrototype: NumberObject
{
void init(ExecutionEngine *engine, Object *ctor);
+ static ReturnedValue method_isFinite(CallContext *ctx);
+ static ReturnedValue method_isNaN(CallContext *ctx);
static ReturnedValue method_toString(CallContext *ctx);
static ReturnedValue method_toLocaleString(CallContext *ctx);
static ReturnedValue method_valueOf(CallContext *ctx);