diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-05-29 12:14:53 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-06-04 13:02:09 +0000 |
commit | 8e23235181eb25faf99324e136412da23dc8386f (patch) | |
tree | 97071ffe480c175200e8cb765a80015aa11cf890 /src/qml/jsruntime/qv4typedarray_p.h | |
parent | a0fcf724ef1d8586301a913d2cd744aed33e3605 (diff) |
Use Symbol.toStringTag in Object.prototype.toString
This should make toString comply fully with the JS Spec.
Also add a couple of missing Symbol.toStringTag
properties.
Change-Id: I29e2018b486a0e1d174b58ce7a14f0e42cc78767
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4typedarray_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4typedarray_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4typedarray_p.h b/src/qml/jsruntime/qv4typedarray_p.h index 5f1d343b36..43ff1ec5b7 100644 --- a/src/qml/jsruntime/qv4typedarray_p.h +++ b/src/qml/jsruntime/qv4typedarray_p.h @@ -176,6 +176,9 @@ struct IntrinsicTypedArrayPrototype : Object static ReturnedValue method_values(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); static ReturnedValue method_set(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); static ReturnedValue method_subarray(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); + + static ReturnedValue method_get_toStringTag(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); + }; struct TypedArrayPrototype : Object |