aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4numberobject_p.h
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@crimson.no>2017-02-10 10:32:00 +0100
committerRobin Burchell <robin.burchell@crimson.no>2017-02-14 18:10:30 +0000
commit11ca6648401587c1654a9ddab2081084c841acb4 (patch)
treee8ce49cbd78ccab22cf71e7719bfce5131b3bc83 /src/qml/jsruntime/qv4numberobject_p.h
parentf64fb98a28fde0e4b2d488d78145c0aa958bbc9c (diff)
Number: Improve ES6 compatibility
[ChangeLog][QtQml] Number now contains the MAX_SAFE_INTEGER, MIN_SAFE_INTEGER, isInteger and isSafeInteger properties from the ES6 specification. All tests for the new functionality pass, except those that require missing features (like Symbol). While we're here, also fix up the length attributes of a few methods (that test262 for ES6 checks). Remaining failures in Number are now down to: * Missing binary literal support * Missing octal literal support * missing Symbol support ... and there are still some "suspect" failures that may require behavior changes in: * toExponential * toPrecision Change-Id: I6c9418d2ff94929f5c96d63dde2faa316672e82b Reviewed-by: Lars Knoll <lars.knoll@qt.io>
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 364b866a16..e18267c50c 100644
--- a/src/qml/jsruntime/qv4numberobject_p.h
+++ b/src/qml/jsruntime/qv4numberobject_p.h
@@ -88,6 +88,8 @@ struct NumberPrototype: NumberObject
void init(ExecutionEngine *engine, Object *ctor);
static void method_isFinite(const BuiltinFunction *, Scope &scope, CallData *callData);
+ static void method_isInteger(const BuiltinFunction *, Scope &scope, CallData *callData);
+ static void method_isSafeInteger(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_isNaN(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_toString(const BuiltinFunction *, Scope &scope, CallData *callData);
static void method_toLocaleString(const BuiltinFunction *, Scope &scope, CallData *callData);