Fix file and line number reporting of QML/JS errors
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 27 May 2013 12:19:35 +0000 (14:19 +0200)
committerLars Knoll <lars.knoll@digia.com>
Mon, 27 May 2013 18:35:25 +0000 (20:35 +0200)
commit6b5c964caaa1076c988e41c011bf766801570fdd
tree37ebe0bb891569070aa6f72e959d9bb8e0f31fc7
parent8a822866b68f5f425b2e1f5c793fe36acf291f4d
Fix file and line number reporting of QML/JS errors

* Replace QUrl with QString in V4 for the source location (we don't need URL parsing)
* Replace line number and file in QV4::Exception with the information we retrieve from
  the stack trace of the exception.

Fixes about five tst_qqmlecmascript tests that relied on correct file/line number information

Change-Id: I2a3daa72be6c5587fd965211ea8f6fb77142e7ee
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
28 files changed:
src/imports/testlib/main.cpp
src/qml/qml/qqmljavascriptexpression.cpp
src/qml/qml/qqmlxmlhttprequest.cpp
src/qml/qml/v4/llvm_runtime.cpp
src/qml/qml/v4/moth/qv4instr_moth_p.h
src/qml/qml/v4/moth/qv4isel_moth.cpp
src/qml/qml/v4/moth/qv4isel_moth_p.h
src/qml/qml/v4/moth/qv4vme_moth.cpp
src/qml/qml/v4/qv4codegen.cpp
src/qml/qml/v4/qv4context.cpp
src/qml/qml/v4/qv4context_p.h
src/qml/qml/v4/qv4engine.cpp
src/qml/qml/v4/qv4engine_p.h
src/qml/qml/v4/qv4function_p.h
src/qml/qml/v4/qv4isel_masm.cpp
src/qml/qml/v4/qv4isel_masm_p.h
src/qml/qml/v4/qv4isel_p.cpp
src/qml/qml/v4/qv4isel_p.h
src/qml/qml/v4/qv4jsir_p.h
src/qml/qml/v4/qv4runtime.cpp
src/qml/qml/v4/qv4runtime_p.h
src/qml/qml/v4/qv4script.cpp
src/qml/qml/v4/qv4sequenceobject.cpp
src/qml/qml/v4/qv4v8.cpp
src/qml/qml/v8/qqmlbuiltinfunctions.cpp
src/qml/qml/v8/qv8qobjectwrapper.cpp
src/qml/qml/v8/qv8valuetypewrapper.cpp
tools/v4/main.cpp