Rubber stamped by Eric.
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 11 Feb 2008 07:40:49 +0000 (07:40 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 11 Feb 2008 07:40:49 +0000 (07:40 +0000)
        * kjs/ExecState.h:
        (KJS::ExecState::takeException): Added.

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

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/ExecState.h

index 7118d868563656c2b7983a128adace7dec22e067..8d0454ff292500bb338e4539a3c45788ae1444e5 100644 (file)
@@ -1,3 +1,10 @@
+2008-02-10  Darin Adler  <darin@apple.com>
+
+        Rubber stamped by Eric.
+
+        * kjs/ExecState.h:
+        (KJS::ExecState::takeException): Added.
+
 2008-02-10  Darin Adler  <darin@apple.com>
 
         Reviewed by Eric.
index b63c4ca5e008b4b757876f2f15358823409acec3..ffa067d967bfbac50800551af1037ebed2645cdf 100644 (file)
@@ -58,11 +58,12 @@ namespace KJS  {
         // Global object that was in scope when the current body of code was defined.
         JSGlobalObject* lexicalGlobalObject() const;
                 
-        void setException(JSValue* e) { m_exception = e; }
+        void setException(JSValue* exception) { m_exception = exception; }
         void clearException() { m_exception = 0; }
         JSValue* exception() const { return m_exception; }
         JSValue** exceptionSlot() { return &m_exception; }
         bool hadException() const { return !!m_exception; }
+        JSValue* takeException() { JSValue* exception = m_exception; m_exception = 0; return exception; }
         
         const ScopeChain& scopeChain() const { return m_scopeChain; }
         void pushScope(JSObject* s) { m_scopeChain.push(s); }