diff options
author | Liang Qi <liang.qi@qt.io> | 2019-03-20 13:41:04 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-03-20 13:36:23 +0000 |
commit | b107451957d8c74eb70d660d8313b4bc0dcf200b (patch) | |
tree | 34ec8f3e82c02664fda77d9d9200386786b2e6bb | |
parent | 7eaca8c4f8adc86ea7a01b02eba27a1289a09ea5 (diff) | |
download | qtdoc-b107451957d8c74eb70d660d8313b4bc0dcf200b.tar.gz |
Handle recursion depth errors when parsing JavaScript
Implementations of QQmlJS::AST::Visitor are required to do so.
Change-Id: I47d55d25d7c4dd3f826b3cd24a29fc4287d113c8
Reviewed-by: Liang Qi <liang.qi@qt.io>
-rw-r--r-- | tests/auto/qml/qqmlparser/tst_qqmlparser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp b/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp index e30481e3..3381f031 100644 --- a/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp +++ b/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp @@ -104,6 +104,11 @@ public: { nodeStack.removeLast(); } + + void throwRecursionDepthError() + { + QFAIL("Maximum statement or expression depth exceeded"); + } }; } |