Ignore:
Timestamp:
Sep 26, 2016, 7:46:19 PM (9 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r206405.
https://bugs.webkit.org/show_bug.cgi?id=162588

This change caused LayoutTest crashes. (Requested by
ryanhaddad on #webkit).

Reverted changeset:

"Add some needed CatchScopes in code that should not throw."
https://bugs.webkit.org/show_bug.cgi?id=162584
http://trac.webkit.org/changeset/206405

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/profiler/ProfilerDatabase.cpp

    r206405 r206408  
    135135bool Database::save(const char* filename) const
    136136{
    137     auto scope = DECLARE_CATCH_SCOPE(m_vm);
    138137    auto out = FilePrintStream::open(filename, "w");
    139138    if (!out)
    140139        return false;
    141140   
    142     String data = toJSON();
    143     if (UNLIKELY(scope.exception())) {
    144         scope.clearException();
    145         return false;
    146     }
    147     out->print(data);
     141    out->print(toJSON());
    148142    return true;
    149143}
Note: See TracChangeset for help on using the changeset viewer.