Qt Declarative (Quick 2)
Go to file
Ulf Hermann af1ef35fa0 JSON: Properly handle bad objects in JSON.stringify()
For objects with circular structures we generate a proper error message
and fail earlier. For objects with excessive recursion we throw a range
error rather than crashing.

This behavior is modeled after node's behavior in such circumstances.

We use the existing stack overflow detection to determine when to throw
the range error. Testing shows that on windows the limit was
insufficient. Lower it.

Pick-to: 6.2 6.3 6.4
Fixes: QTBUG-92192
Change-Id: I25dd302f65f359111e42492df3c71549c4ed7157
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-08-07 18:08:49 +00:00
LICENSES Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
cmake Add license headers to cmake files 2022-07-08 10:41:06 +02:00
coin qmldom: use a snapshot which has the Q_QML_COMPILER_EXPORT rename 2022-07-12 18:17:15 +00:00
dist Merge qtquickcontrols2 into qtdeclarative 2021-07-28 11:21:25 +02:00
examples Fix the pointerhandlers example 2022-07-11 17:23:24 +02:00
features
src JSON: Properly handle bad objects in JSON.stringify() 2022-08-07 18:08:49 +00:00
tests JSON: Properly handle bad objects in JSON.stringify() 2022-08-07 18:08:49 +00:00
tools qmltyperegistrar: refactor FILE* to QTextStream 2022-08-04 19:10:09 +02:00
.cmake.conf Bump version to 6.5.0 2022-06-13 13:01:28 +03:00
.gitattributes qmlformat: improve testing of file based options 2021-11-04 13:35:48 +01:00
.gitignore Merge qtquickcontrols2 into qtdeclarative 2021-07-28 11:21:25 +02:00
.gitmodules Update to the latest version of the ecmascript test suite 2018-04-26 20:26:36 +00:00
.tag Use tree hash rather than commit hash in .tag file 2022-01-25 23:55:27 +01:00
CMakeLists.txt Add license headers to cmake files 2022-07-08 10:41:06 +02:00
README.md Rewrite README.md 2021-08-12 13:15:17 +00:00
conanfile.py Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
configure.cmake Add license headers to cmake files 2022-07-08 10:41:06 +02:00
dependencies.yaml Update dependencies on 'dev' in qt/qtdeclarative 2022-07-28 04:02:26 +00:00
qt_cmdline.cmake Add license headers to cmake files 2022-07-08 10:41:06 +02:00
qtdeclarative.doxy Add doxyfile for building doxygen documentation 2018-08-16 15:54:40 +00:00
sync.profile qmltyperegistrar: Extract into own library 2022-07-01 13:55:42 +02:00