mirror of https://github.com/qt/qtdoc.git
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>
This commit is contained in:
parent
7eaca8c4f8
commit
b107451957
|
@ -104,6 +104,11 @@ public:
|
||||||
{
|
{
|
||||||
nodeStack.removeLast();
|
nodeStack.removeLast();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void throwRecursionDepthError()
|
||||||
|
{
|
||||||
|
QFAIL("Maximum statement or expression depth exceeded");
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue