Use the same ReferenceError message wording as V8
authorKent Hansen <kent.hansen@nokia.com>
Wed, 14 Mar 2012 11:51:22 +0000 (12:51 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 14 Mar 2012 15:45:30 +0000 (16:45 +0100)
commitf91dba12746bb1675bfe3a483288e712a867dd7c
tree5a1c2bbb0d7f0b0585861cc2b362074cf7466a6f
parenta06936e5037c017248a9eefa9378cebfd6b2f5c1
Use the same ReferenceError message wording as V8

Instead of "Can't find variable: foo", use "foo is not defined".

This is in preparation of letting V8 throw the exception when a
property lookup fails on the QML scope object (needed for
QTBUG-24448).

Change-Id: I3c747482a8ef138dad9a85530a4f6b5c4c818a03
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/qml/qml/v8/qv8contextwrapper.cpp
tests/auto/qml/qqmlcontext/tst_qqmlcontext.cpp
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
tests/auto/qml/qquickworkerscript/tst_qquickworkerscript.cpp
tests/auto/quick/qquickvisualdatamodel/tst_qquickvisualdatamodel.cpp