diff -r 5dc02b23752f -r 3e2da88830cd src/script/api/qscriptcontext.cpp --- a/src/script/api/qscriptcontext.cpp Tue Jul 06 15:10:48 2010 +0300 +++ b/src/script/api/qscriptcontext.cpp Wed Aug 18 10:37:55 2010 +0300 @@ -742,6 +742,7 @@ */ QScriptValue QScriptContext::popScope() { + activationObject(); //ensure the creation of the normal scope for native context JSC::CallFrame *frame = QScriptEnginePrivate::frameForContext(this); JSC::ScopeChainNode *scope = frame->scopeChain(); Q_ASSERT(scope != 0);