summaryrefslogtreecommitdiffstats
path: root/Source/JavaScriptGlue/JSUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptGlue/JSUtils.cpp')
-rw-r--r--Source/JavaScriptGlue/JSUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/JavaScriptGlue/JSUtils.cpp b/Source/JavaScriptGlue/JSUtils.cpp
index 94c8dcc..b62e7bf 100644
--- a/Source/JavaScriptGlue/JSUtils.cpp
+++ b/Source/JavaScriptGlue/JSUtils.cpp
@@ -414,7 +414,7 @@ static JSGlueGlobalObject* getThreadGlobalObject()
pthread_once(&globalObjectKeyOnce, initializeGlobalObjectKey);
JSGlueGlobalObject* globalObject = static_cast<JSGlueGlobalObject*>(pthread_getspecific(globalObjectKey));
if (!globalObject) {
- globalObject = new (getThreadGlobalData()) JSGlueGlobalObject(JSGlueGlobalObject::createStructure(jsNull()));
+ globalObject = new (getThreadGlobalData()) JSGlueGlobalObject(*getThreadGlobalData(), JSGlueGlobalObject::createStructure(*getThreadGlobalData(), jsNull()));
gcProtect(globalObject);
pthread_setspecific(globalObjectKey, globalObject);
}