summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptengine.cpp
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-03-26 12:59:26 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2010-03-26 15:16:49 (GMT)
commit61b488a965eebc52104243dce21eaeb203cfecae (patch)
treec7370f9f384a9a89c5fa5f269a74f30833399ece /src/script/api/qscriptengine.cpp
parent6829ee30f02f162bbb399000c853c8d680f8f8de (diff)
downloadQt-61b488a965eebc52104243dce21eaeb203cfecae.zip
Qt-61b488a965eebc52104243dce21eaeb203cfecae.tar.gz
Qt-61b488a965eebc52104243dce21eaeb203cfecae.tar.bz2
QtScript: Make sure the old identifier table is restored
Use a shim to take care of that.
Diffstat (limited to 'src/script/api/qscriptengine.cpp')
-rw-r--r--src/script/api/qscriptengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp
index b322523..a393ead 100644
--- a/src/script/api/qscriptengine.cpp
+++ b/src/script/api/qscriptengine.cpp
@@ -915,7 +915,7 @@ QScriptEnginePrivate::QScriptEnginePrivate()
QScriptEnginePrivate::~QScriptEnginePrivate()
{
- JSC::setCurrentIdentifierTable(globalData->identifierTable);
+ QScript::APIShim shim(this);
//disconnect all loadedScripts and generate all jsc::debugger::scriptUnload events
QHash<intptr_t,QScript::UStringSourceProviderWithFeedback*>::const_iterator it;