diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-04-26 13:12:38 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-02 14:20:29 +0000 |
commit | 8761cbd4f7aada5a976831ff404b004f537a660b (patch) | |
tree | 5b5b258178c99e0d77cc84a2e8c31df41f98415b /src/qml/jsruntime/qv4engine_p.h | |
parent | 7d46d7251032ea31f7e7dcef4855a0e5d669fed5 (diff) |
Implement StringIterator
Add support for String.prototype[Symbol.iterator] and the
StringIterator object.
Change-Id: I72c4f988e4f363be1af51f9cc5f8e83af43cd151
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index f6ffd775ea..819481ed91 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -188,6 +188,7 @@ public: SignalHandlerProto, IteratorProto, ArrayIteratorProto, + StringIteratorProto, Object_Ctor, String_Ctor, @@ -268,6 +269,7 @@ public: Object *signalHandlerPrototype() const { return reinterpret_cast<Object *>(jsObjects + SignalHandlerProto); } Object *iteratorPrototype() const { return reinterpret_cast<Object *>(jsObjects + IteratorProto); } Object *arrayIteratorPrototype() const { return reinterpret_cast<Object *>(jsObjects + ArrayIteratorProto); } + Object *stringIteratorPrototype() const { return reinterpret_cast<Object *>(jsObjects + StringIteratorProto); } EvalFunction *evalFunction() const { return reinterpret_cast<EvalFunction *>(jsObjects + Eval_Function); } FunctionObject *getStackFunction() const { return reinterpret_cast<FunctionObject *>(jsObjects + GetStack_Function); } |