Changeset 30140 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Feb 10, 2008, 11:40:49 PM (17 years ago)
Author:
Darin Adler
Message:

Rubber stamped by Eric.

  • kjs/ExecState.h: (KJS::ExecState::takeException): Added.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r30133 r30140  
     12008-02-10  Darin Adler  <[email protected]>
     2
     3        Rubber stamped by Eric.
     4
     5        * kjs/ExecState.h:
     6        (KJS::ExecState::takeException): Added.
     7
    182008-02-10  Darin Adler  <[email protected]>
    29
  • trunk/JavaScriptCore/kjs/ExecState.h

    r29810 r30140  
    5959        JSGlobalObject* lexicalGlobalObject() const;
    6060               
    61         void setException(JSValue* e) { m_exception = e; }
     61        void setException(JSValue* exception) { m_exception = exception; }
    6262        void clearException() { m_exception = 0; }
    6363        JSValue* exception() const { return m_exception; }
    6464        JSValue** exceptionSlot() { return &m_exception; }
    6565        bool hadException() const { return !!m_exception; }
     66        JSValue* takeException() { JSValue* exception = m_exception; m_exception = 0; return exception; }
    6667       
    6768        const ScopeChain& scopeChain() const { return m_scopeChain; }
Note: See TracChangeset for help on using the changeset viewer.