diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-04-20 13:38:31 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-20 13:30:06 +0000 |
commit | a41dc6147436f3c1c977ff8c04379ff4bde3f0a6 (patch) | |
tree | 743146494dfe3683971ef3cf71def64e51214106 /src/qml/qml/qqmlobjectcreator.cpp | |
parent | ca4dbd5675ad3aabffb9fb92f19b53b4c5028981 (diff) |
Always return a proper Value from JIT generated code
When throwing an exception, we ended up having junk data in
the return value register. That could end up being written
onto the JS stack when returning from the function, and then
causing crashes in the garbage collector afterwards.
Fix it by returning undefined in case we throw an exception.
Change-Id: Ice380f2de673b179c1e2c98fbeb87e47347ef520
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlobjectcreator.cpp')
0 files changed, 0 insertions, 0 deletions