Changeset 34793 in webkit for trunk/JavaScriptCore/kjs/Shell.cpp


Ignore:
Timestamp:
Jun 25, 2008, 1:38:07 AM (17 years ago)
Author:
[email protected]
Message:

2008-06-25 Cameron Zwarich <[email protected]>

Reviewed by Alexey Proskuryakov.

Attempt to fix Windows debug build. The compiler gives a warning when
Structured Exception Handling and destructors are used in the same
function. Using manual locking and unlocking instead of constructors
and destructors should fix the warning.

  • kjs/Shell.cpp: (main):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/Shell.cpp

    r34790 r34793  
    299299        res = jscmain(argc, argv);
    300300#ifndef NDEBUG
    301         JSLock lock;
     301        JSLock::lock();
    302302        JSGlobalData::threadInstance().heap->collect();
     303        JSLock::unlock();
    303304#endif
    304305    EXCEPT(res = 3)
Note: See TracChangeset for help on using the changeset viewer.