aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4runtime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r--src/qml/jsruntime/qv4runtime.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp
index a5249fcc7e..04aff9cad0 100644
--- a/src/qml/jsruntime/qv4runtime.cpp
+++ b/src/qml/jsruntime/qv4runtime.cpp
@@ -331,12 +331,13 @@ bool Runtime::method_deleteProperty(ExecutionEngine *engine, const Value &base,
uint n = index.asArrayIndex();
if (n < UINT_MAX)
- return o->deleteIndexedProperty(n);
+ return o->deleteProperty(Identifier::fromArrayIndex(n));
- ScopedStringOrSymbol name(scope, index.toPropertyKey(engine));
+ Scoped<StringOrSymbol> key(scope, index.toPropertyKey(engine));
if (engine->hasException)
return false;
- return o->deleteProperty(name);
+ Identifier id = key->toPropertyKey();
+ return o->deleteProperty(id);
}
bool Runtime::method_deleteName(ExecutionEngine *engine, int nameIndex)