Changeset 25681 in webkit


Ignore:
Timestamp:
Sep 21, 2007 4:06:33 AM (17 years ago)
Author:
bdash
Message:

2007-09-21 Mark Rowe <mrowe@apple.com>

Reviewed by Antti Koivisto.

http://bugs.webkit.org/show_bug.cgi?id=15250
<rdar://problem/5496942> REGRESSION: Reproducible crash in Safari when evaluating script in Drosera console (15250)

  • kjs/function.cpp: (KJS::GlobalFuncImp::callAsFunction): Null-check thisObj before passing it to interpreterForGlobalObject.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r25658 r25681  
     12007-09-21  Mark Rowe  <mrowe@apple.com>
     2
     3        Reviewed by Antti Koivisto.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=15250
     6        <rdar://problem/5496942> REGRESSION: Reproducible crash in Safari when evaluating script in Drosera console (15250)
     7
     8        * kjs/function.cpp:
     9        (KJS::GlobalFuncImp::callAsFunction): Null-check thisObj before passing it to interpreterForGlobalObject.
     10
    1112007-09-19  Holger Hans Peter Freyther  <zecke@selfish.org>
    212
  • trunk/JavaScriptCore/kjs/function.cpp

    r25535 r25681  
    818818          return throwError(exec, SyntaxError, errMsg, errLine, sid, NULL);
    819819
    820         bool switchGlobal = exec->dynamicInterpreter()->isGlobalObject(thisObj) && thisObj != exec->dynamicInterpreter()->globalObject();
     820        bool switchGlobal = thisObj && exec->dynamicInterpreter()->isGlobalObject(thisObj) && thisObj != exec->dynamicInterpreter()->globalObject();
    821821         
    822822        // enter a new execution context
Note: See TracChangeset for help on using the changeset viewer.