aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4value.cpp')
-rw-r--r--src/qml/jsruntime/qv4value.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4value.cpp b/src/qml/jsruntime/qv4value.cpp
index 934fb2fbaa..cbc153bb86 100644
--- a/src/qml/jsruntime/qv4value.cpp
+++ b/src/qml/jsruntime/qv4value.cpp
@@ -237,8 +237,7 @@ QV4::PropertyKey Value::toPropertyKey(ExecutionEngine *e) const
if (isStringOrSymbol()) {
Scope scope(e);
ScopedStringOrSymbol s(scope, this);
- s->makeIdentifier();
- return s->identifier();
+ return s->toPropertyKey();
}
Scope scope(e);
ScopedValue v(scope, RuntimeHelpers::toPrimitive(*this, STRING_HINT));
@@ -247,8 +246,7 @@ QV4::PropertyKey Value::toPropertyKey(ExecutionEngine *e) const
if (e->hasException)
return PropertyKey::invalid();
ScopedStringOrSymbol s(scope, v);
- s->makeIdentifier();
- return s->identifier();
+ return s->toPropertyKey();
}
#endif // V4_BOOTSTRAP