From e3d7968c39d27b7a59c124966f63f8bdda574d4c Mon Sep 17 00:00:00 2001 From: "mrowe@apple.com" Date: Thu, 29 Nov 2007 10:16:27 +0000 Subject: [PATCH] Fix REGRESSION(r27885): Installer hits assertion failure in JavaScriptGlue. 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 | 9 +++++++++ JavaScriptGlue/JSValueWrapper.cpp | 1 + 2 files changed, 10 insertions(+) diff --git a/JavaScriptGlue/ChangeLog b/JavaScriptGlue/ChangeLog index 65e4a69..18871aa 100644 --- a/JavaScriptGlue/ChangeLog +++ b/JavaScriptGlue/ChangeLog @@ -1,3 +1,12 @@ +2007-11-29 Mark Rowe + + 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 Build fix. diff --git a/JavaScriptGlue/JSValueWrapper.cpp b/JavaScriptGlue/JSValueWrapper.cpp index a101c8c..270c45a 100644 --- a/JavaScriptGlue/JSValueWrapper.cpp +++ b/JavaScriptGlue/JSValueWrapper.cpp @@ -79,6 +79,7 @@ static ExecState* getThreadGlobalExecState() Interpreter* interpreter = static_cast(pthread_getspecific(interpreterKey)); if (!interpreter) { interpreter = new Interpreter(); + interpreter->setGlobalObject(new JSGlobalObject()); interpreter->ref(); pthread_setspecific(interpreterKey, interpreter); } -- 1.8.3.1