diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-06-19 11:50:07 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-06-25 07:36:41 +0000 |
commit | 4094ce77af45427613e823a2a4d3c6087230d35a (patch) | |
tree | 027d8c054435016f1f478790fdcd4ac745ce8048 /src/qml/jsruntime/qv4object.cpp | |
parent | 4f5d83acf78c7e3e3f4b89190d6109a4c8fa574d (diff) |
Add support for isExtensible in proxy handlers
Change-Id: I580ff0ab33fa58bcd42f6cc500f4a20ee5b05e87
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4object.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4object.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4object.cpp b/src/qml/jsruntime/qv4object.cpp index 618970b940..751010fa4e 100644 --- a/src/qml/jsruntime/qv4object.cpp +++ b/src/qml/jsruntime/qv4object.cpp @@ -1020,6 +1020,11 @@ PropertyAttributes Object::getOwnProperty(Managed *m, Identifier id, Property *p return Attr_Invalid; } +bool Object::isExtensible(const Managed *m) +{ + return m->d()->internalClass->extensible; +} + bool Object::setArrayLength(uint newLen) { Q_ASSERT(isArrayObject()); |