summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptvalueiterator.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-27 14:32:16 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-07-27 17:58:12 (GMT)
commitb9026b5f2182db6f0e607035cb4ac3798bf09054 (patch)
tree4b3c06b391e10d063f3301705e7b8f314c9d3826 /src/script/api/qscriptvalueiterator.cpp
parent4832462e2f0a3f68485ae85efff368e3346d5c1f (diff)
downloadQt-b9026b5f2182db6f0e607035cb4ac3798bf09054.zip
Qt-b9026b5f2182db6f0e607035cb4ac3798bf09054.tar.gz
Qt-b9026b5f2182db6f0e607035cb4ac3798bf09054.tar.bz2
don't rely on custom global object to get GC callback
Install custom ClientData on JSGlobalData instance instead. Also some cleanups to avoid globalObject et al being accessed directly. Killed the proxying scheme employed in setGlobalObject() since it didn't work; if you stored the original Global Object and replaced it with another object, then added properties to the new object, they would show up in the old object, too (because the old object would always proxy to whatever the current Global Object was).
Diffstat (limited to 'src/script/api/qscriptvalueiterator.cpp')
-rw-r--r--src/script/api/qscriptvalueiterator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/qscriptvalueiterator.cpp b/src/script/api/qscriptvalueiterator.cpp
index 1366c3f..dbf290b 100644
--- a/src/script/api/qscriptvalueiterator.cpp
+++ b/src/script/api/qscriptvalueiterator.cpp
@@ -114,7 +114,7 @@ public:
if (propertyNames != 0)
return;
QScriptEnginePrivate *eng_p = QScriptEnginePrivate::get(object.engine());
- JSC::ExecState *exec = eng_p->globalObject->globalExec();
+ JSC::ExecState *exec = eng_p->globalExec();
propertyNames = new JSC::PropertyNameArray(exec);
JSC::asObject(QScriptValuePrivate::get(object)->jscValue)->getPropertyNames(exec, *propertyNames);
}