diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-02-03 10:53:30 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-02-03 10:53:30 (GMT) |
commit | c920856b58e9e01ea3813a4c158638b19a113501 (patch) | |
tree | 0bcec0cd676eee0b026c5d21f7fca5e0a7425f29 /src/script | |
parent | 8a73e64bfe86e572260c888d5523c8e973c2f7fe (diff) | |
parent | da48bbe66b7821416bee1ebc0215bc93e68f0a2a (diff) | |
download | Qt-c920856b58e9e01ea3813a4c158638b19a113501.zip Qt-c920856b58e9e01ea3813a4c158638b19a113501.tar.gz Qt-c920856b58e9e01ea3813a4c158638b19a113501.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-air-staging into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-air-staging:
Split QScriptQObject test into smaller functions
Split QScriptEngine test into smaller functions
Split QScriptContext autotest into smaller functions
Improve QScriptClass test coverage
Bring back "classic" iteration order of QScriptClass properties
Split QScriptClass autotest into smaller functions
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/bridge/qscriptclassobject.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/script/bridge/qscriptclassobject.cpp b/src/script/bridge/qscriptclassobject.cpp index 9285883..2085756 100644 --- a/src/script/bridge/qscriptclassobject.cpp +++ b/src/script/bridge/qscriptclassobject.cpp @@ -183,6 +183,10 @@ void ClassObjectDelegate::getOwnPropertyNames(QScriptObject* object, JSC::ExecSt JSC::PropertyNameArray &propertyNames, JSC::EnumerationMode mode) { + // For compatibility with the old back-end, normal JS properties + // are added first. + QScriptObjectDelegate::getOwnPropertyNames(object, exec, propertyNames, mode); + QScriptEnginePrivate *engine = scriptEngineFromExec(exec); QScript::SaveFrameHelper saveFrame(engine, exec); QScriptValue scriptObject = engine->scriptValueFromJSCValue(object); @@ -195,7 +199,6 @@ void ClassObjectDelegate::getOwnPropertyNames(QScriptObject* object, JSC::ExecSt } delete it; } - QScriptObjectDelegate::getOwnPropertyNames(object, exec, propertyNames, mode); } JSC::CallType ClassObjectDelegate::getCallData(QScriptObject*, JSC::CallData &callData) |