diff options
Diffstat (limited to 'src/libs/qmljs/qmljsscopechain.cpp')
-rw-r--r-- | src/libs/qmljs/qmljsscopechain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljsscopechain.cpp b/src/libs/qmljs/qmljsscopechain.cpp index 17901321ea..378e2abbfa 100644 --- a/src/libs/qmljs/qmljsscopechain.cpp +++ b/src/libs/qmljs/qmljsscopechain.cpp @@ -112,6 +112,8 @@ const Value * ScopeChain::lookup(const QString &name, const ObjectValue **foundI if (foundInScope) *foundInScope = 0; + + // we're confident to implement global lookup correctly, so return 'undefined' return m_context->valueOwner()->undefinedValue(); } |