diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2020-04-09 13:34:01 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2020-05-06 10:45:48 +0200 |
commit | a714a3a446a47b3ac18de6cea1e6c4ca01535170 (patch) | |
tree | 2569eb6ec42f4b537bc18477b88d9a718f444012 /src/qml/jsruntime/qv4engine_p.h | |
parent | 22f9e5fb1ed643f284f50b9417bdbafdfb20566b (diff) |
Implement URLSearchParams
Implements URLSearchParams (https://url.spec.whatwg.org/#urlsearchparams),
completing our implementation of the URL object.
Still needs the for..of iterator to get implemented.
Change-Id: Iad33ed2f3fe0b2598ca2b0b21a4743f5f7dc19fd
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index ebf2fcd55a..c555730838 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -241,6 +241,7 @@ public: ArrayIteratorProto, StringIteratorProto, UrlProto, + UrlSearchParamsProto, Object_Ctor, String_Ctor, @@ -269,6 +270,7 @@ public: Map_Ctor, IntrinsicTypedArray_Ctor, Url_Ctor, + UrlSearchParams_Ctor, GetSymbolSpecies, @@ -313,6 +315,10 @@ public: { return reinterpret_cast<FunctionObject *>(jsObjects + Url_Ctor); } + FunctionObject *urlSearchParamsCtor() const + { + return reinterpret_cast<FunctionObject *>(jsObjects + UrlSearchParams_Ctor); + } FunctionObject *typedArrayCtors; FunctionObject *getSymbolSpecies() const { return reinterpret_cast<FunctionObject *>(jsObjects + GetSymbolSpecies); } @@ -361,6 +367,7 @@ public: Object *arrayIteratorPrototype() const { return reinterpret_cast<Object *>(jsObjects + ArrayIteratorProto); } Object *stringIteratorPrototype() const { return reinterpret_cast<Object *>(jsObjects + StringIteratorProto); } Object *urlPrototype() const { return reinterpret_cast<Object *>(jsObjects + UrlProto); } + Object *urlSearchParamsPrototype() const { return reinterpret_cast<Object *>(jsObjects + UrlSearchParamsProto); } EvalFunction *evalFunction() const { return reinterpret_cast<EvalFunction *>(jsObjects + Eval_Function); } FunctionObject *getStackFunction() const { return reinterpret_cast<FunctionObject *>(jsObjects + GetStack_Function); } @@ -591,6 +598,7 @@ public: #endif Heap::UrlObject *newUrlObject(); + Heap::UrlSearchParamsObject *newUrlSearchParamsObject(); Heap::Object *newErrorObject(const Value &value); Heap::Object *newErrorObject(const QString &message); |