diff options
author | Fabian Kosmale <[email protected]> | 2020-04-20 10:28:31 +0200 |
---|---|---|
committer | Volker Hilsheimer <[email protected]> | 2020-05-18 22:53:14 +0200 |
commit | 818868957003001a3445cb2c2ec19cb535c60917 (patch) | |
tree | dfc86b553d118e1096703cf870cf34dd9d15d8ff /src/qml/jsruntime/qv4arraydata.cpp | |
parent | e2e8900bfa9dcd240ae2c20217b67f9dbbb2a645 (diff) |
Check in even more places for exceptions
Amends commit 4c5ed04e64ea9ac0038ae30e1189cfe745b29bd9
Task-number: QTBUG-83384
Change-Id: I0918c27dfa73dff83cbf0f58b41ce8620dff8a0a
Reviewed-by: Simon Hausmann <[email protected]>
(cherry picked from commit f31a2dc6fc713ee06ea7a9ba45c3ceaace7d735d)
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4arraydata.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4arraydata.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4arraydata.cpp b/src/qml/jsruntime/qv4arraydata.cpp index 1c587d2367..0eea3345c5 100644 --- a/src/qml/jsruntime/qv4arraydata.cpp +++ b/src/qml/jsruntime/qv4arraydata.cpp @@ -654,6 +654,8 @@ bool ArrayElementLessThan::operator()(Value v1, Value v2) const jsCallData->args[0] = v1; jsCallData->args[1] = v2; result = o->call(jsCallData); + if (scope.hasException()) + return false; return result->toNumber() < 0; } |