Fix QJSEngine::evaluate
authorLars Knoll <lars.knoll@digia.com>
Sat, 4 May 2013 21:33:23 +0000 (23:33 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Sun, 5 May 2013 12:15:14 +0000 (14:15 +0200)
commit2a71d0e938a8ea42223d33dfab71cf9bb982d804
tree12a07ac2b87e0d57cd65972291f91c202a02bd7f
parent1a3fbd86c3cf989f131586ed7ddb4bdb9129fd53
Fix QJSEngine::evaluate

if EvalFunction::parseSource returns 0, it means there wasn't
anything to parse, not that the input was invalid, so simply
return undefined in this case.

Change-Id: I13aafaba40723d4aa7c0f2e7f3eddfac86239cd0
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/v8/qjsengine.cpp