src/script/api/qscriptcontext.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
child 37 758a864f9613
--- 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);