diff options
Diffstat (limited to 'src/qml/jsruntime/qv4proxy.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4proxy.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/qml/jsruntime/qv4proxy.cpp b/src/qml/jsruntime/qv4proxy.cpp index b34af97870..11000123f6 100644 --- a/src/qml/jsruntime/qv4proxy.cpp +++ b/src/qml/jsruntime/qv4proxy.cpp @@ -81,8 +81,7 @@ ReturnedValue ProxyObject::get(const Managed *m, StringOrSymbol *name, bool *has ScopedValue trapResult(scope, static_cast<const FunctionObject *>(trap.ptr)->call(cdata)); ScopedProperty targetDesc(scope); - PropertyAttributes attributes; - target->getOwnProperty(name, &attributes, targetDesc); + PropertyAttributes attributes = target->getOwnProperty(name->toPropertyKey(), targetDesc); if (attributes != Attr_Invalid && !attributes.isConfigurable()) { if (attributes.isData() && !attributes.isWritable()) { if (!trapResult->sameValue(targetDesc->value)) @@ -131,8 +130,7 @@ bool ProxyObject::put(Managed *m, StringOrSymbol *name, const Value &value) if (!trapResult->toBoolean()) return false; ScopedProperty targetDesc(scope); - PropertyAttributes attributes; - target->getOwnProperty(name, &attributes, targetDesc); + PropertyAttributes attributes = target->getOwnProperty(name->toPropertyKey(), targetDesc); if (attributes != Attr_Invalid && !attributes.isConfigurable()) { if (attributes.isData() && !attributes.isWritable()) { if (!value.sameValue(targetDesc->value)) @@ -179,8 +177,7 @@ bool ProxyObject::deleteProperty(Managed *m, StringOrSymbol *name) if (!trapResult->toBoolean()) return false; ScopedProperty targetDesc(scope); - PropertyAttributes attributes; - target->getOwnProperty(name, &attributes, targetDesc); + PropertyAttributes attributes = target->getOwnProperty(name->toPropertyKey(), targetDesc); if (attributes == Attr_Invalid) return true; if (!attributes.isConfigurable()) |