Implement error.fileName and error.lineNumber
authorLars Knoll <lars.knoll@digia.com>
Fri, 14 Jun 2013 11:08:13 +0000 (13:08 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Fri, 14 Jun 2013 11:15:05 +0000 (13:15 +0200)
commit0c9d347089ec3c0813b5a09eb7911ed1b1d752e2
treec54f03a5760fcf0706863d38732f8a69f62c8bf7
parenteeee3aabd133cdae7f08b356187d6867f6dc8b4b
Implement error.fileName and error.lineNumber

Useful extensions to the error object. This also helped
track down a few places in the parser where we wouldn't give
correct error information.

Change-Id: Id03653e096216e097c13a7a6e698ca142d92da13
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
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/qv4errorobject.cpp
src/qml/qml/v4/qv4errorobject_p.h
tests/auto/qml/qjsengine/tst_qjsengine.cpp