diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-06-18 09:35:48 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-06-25 07:36:34 +0000 |
commit | 12319279538be50f83db3c2a1e68ccde8fd99814 (patch) | |
tree | dfc8c327ff68b1e94ae790216434505e9a88c37c /src/qml/jsruntime/qv4proxy_p.h | |
parent | 53bbda2dfeac39f6f28e507ea9a92965076b65e6 (diff) |
Implement support for getOwnPropertyDescript and has in Proxy objects
Change-Id: Ie7a15afebdfbad31738d2d944d4128065b8a611f
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4proxy_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4proxy_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4proxy_p.h b/src/qml/jsruntime/qv4proxy_p.h index 52b1fa549e..12360edc8a 100644 --- a/src/qml/jsruntime/qv4proxy_p.h +++ b/src/qml/jsruntime/qv4proxy_p.h @@ -91,6 +91,8 @@ struct ProxyObject: Object { static bool putIndexed(Managed *m, uint index, const Value &value); static bool deleteProperty(Managed *m, StringOrSymbol *name); static bool deleteIndexedProperty(Managed *m, uint index); + static bool hasProperty(const Managed *m, Identifier id); + static PropertyAttributes getOwnProperty(Managed *m, Identifier id, Property *p); // those might require a second proxy object that derives from FunctionObject... // static ReturnedValue callAsConstructor(const FunctionObject *f, const Value *argv, int argc); |