Application object must be constructed before QScriptEngine
authorKent Hansen <khansen@trolltech.com>
Wed, 18 Nov 2009 13:54:10 +0000 (14:54 +0100)
committerKent Hansen <khansen@trolltech.com>
Wed, 18 Nov 2009 14:06:38 +0000 (15:06 +0100)
commitfb4e81bdc692efe0db9aa38dd2b941578c0f0370
tree7b67bf2222058c5d1f3586cd9d3241c87d530d39
parente59d974ddf2f2a413611ba4d8594c6413499a645
Application object must be constructed before QScriptEngine

This is required due to the switch to the JavaScriptCore-based
back-end.
Instead of segfaulting somewhere inside JSC::initializeThreading(),
call qFatal() when this constraint has been violated.

Reviewed-by: Simon Hausmann
src/script/api/qscriptengine.cpp