Changeset 27106 in webkit


Ignore:
Timestamp:
Oct 26, 2007 4:53:15 AM (17 years ago)
Author:
mjs
Message:

No review, build fix.

  • bindings/objc/WebScriptObject.mm: (+[WebScriptObject throwException:]): (-[WebScriptObject setException:]):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r27105 r27106  
     12007-10-26  Maciej Stachowiak  <mjs@apple.com>
     2
     3        No review, build fix.
     4
     5        * bindings/objc/WebScriptObject.mm:
     6        (+[WebScriptObject throwException:]):
     7        (-[WebScriptObject setException:]):
     8
    192007-10-26  Maciej Stachowiak  <mjs@apple.com>
    210
  • trunk/WebCore/bindings/objc/WebScriptObject.mm

    r27097 r27106  
    261261            return NO;
    262262
    263         // If the interpreter has a context, we set the exception.
    264         if (interp->context()) {
    265             ExecState *exec = interp->context()->execState();
    266            
    267             if (exec) {
    268                 throwError(exec, GeneralError, exceptionMessage);
    269                 return YES;
    270             }
     263        // If the interpreter has a current exec state, we set the exception.
     264        if (ExecState* exec = interp->currentExec()) {
     265            throwError(exec, GeneralError, exceptionMessage);
     266            return YES;
    271267        }
    272268        interp = interp->nextInterpreter();
     
    501497    JSLock lock;
    502498   
    503     if ([self _rootObject]->interpreter()->context()) {
    504         ExecState *exec = [self _rootObject]->interpreter()->context()->execState();
    505 
    506         ASSERT(exec);
     499    if (ExecState* exec = [self _rootObject]->interpreter()->currentExec()) {
    507500        throwError(exec, GeneralError, description);
    508501    } else
Note: See TracChangeset for help on using the changeset viewer.