• Kent Hansen's avatar
    Let V8 throw the exception when QML property lookup fails · a27fd584
    Kent Hansen authored
    Only V8 knows whether a failed property lookup should actually cause
    a ReferenceError to be thrown. When evaluating a "typeof" expression,
    for example, a ReferenceError should not be thrown even if the
    expression involves global variables that don't exist, according to
    the ECMA-262 specification.
    QML should try to match the standard JavaScript behavior. This is
    achieved by simply returning an empty value handle (to signify the
    absence of the property), and leaving it to V8 to throw an exception
    as appropriate.
    Task-number: QTBUG-21864
    Task-number: QTBUG-24448
    Change-Id: I9945adcab98fc3b801371163367473d6af0ab31a
    Reviewed-by: default avatarAaron Kennedy <aaron.kennedy@nokia.com>
Last commit
Last update
auto Loading commit data...
benchmarks Loading commit data...
global Loading commit data...
manual/accessibility Loading commit data...
system Loading commit data...
testapplications Loading commit data...
README Loading commit data...
tests.pro Loading commit data...