Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle exceptions inside QV8QObjectConnectionList::qt_metacall
Previously, exceptions were not handled in the connectionlist. This could cause v8 to assert under certain circumstances. Task-number: QTBUG-23375 Change-Id: Ie5f043b50bb6b02a77be464ca18ea8e3bbb0f501 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
- Loading branch information
Chris Adams
authored and
Qt by Nokia
committed
Dec 29, 2011
1 parent
7810092
commit 8eec051
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...s/auto/declarative/qdeclarativeecmascript/data/qobjectConnectionListExceptionHandling.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import QtQuick 2.0 | ||
|
||
Item { | ||
id: root | ||
property int first: 5 | ||
property bool test: false | ||
|
||
Item { | ||
id: exceptional | ||
function exceptionalFunction() { | ||
var obj = undefined; | ||
var prop = undefined; | ||
return obj[prop]; | ||
} | ||
} | ||
|
||
Component.onCompleted: { | ||
root["firstChanged"].connect(exceptional.exceptionalFunction); | ||
root["firstChanged"].connect(exceptional.exceptionalFunction); | ||
root["firstChanged"].connect(exceptional.exceptionalFunction); | ||
first = 6; | ||
test = true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters