Fix REGRESSION(r27885): Installer hits assertion failure in JavaScriptGlue.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2007 10:16:27 +0000 (10:16 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2007 10:16:27 +0000 (10:16 +0000)
Reviewed by Maciej.

* JSValueWrapper.cpp:
(getThreadGlobalExecState): Set the global object on the Interpreter before using it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28137 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptGlue/ChangeLog
JavaScriptGlue/JSValueWrapper.cpp

index 65e4a69..18871aa 100644 (file)
@@ -1,3 +1,12 @@
+2007-11-29  Mark Rowe  <mrowe@apple.com>
+
+        Reviewed by Maciej.
+
+        Fix REGRESSION(r27885): Installer hits assertion failure in JavaScriptGlue.
+
+        * JSValueWrapper.cpp:
+        (getThreadGlobalExecState): Set the global object on the Interpreter before using it.
+
 2007-11-27  Anders Carlsson  <andersca@apple.com>
         
         Build fix.
index a101c8c..270c45a 100644 (file)
@@ -79,6 +79,7 @@ static ExecState* getThreadGlobalExecState()
     Interpreter* interpreter = static_cast<Interpreter*>(pthread_getspecific(interpreterKey));
     if (!interpreter) {
         interpreter = new Interpreter();
+        interpreter->setGlobalObject(new JSGlobalObject());
         interpreter->ref();
         pthread_setspecific(interpreterKey, interpreter);
     }