Changeset 206408 in webkit for trunk/Source/JavaScriptCore/profiler/ProfilerDatabase.cpp
- Timestamp:
- Sep 26, 2016, 7:46:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/profiler/ProfilerDatabase.cpp
r206405 r206408 135 135 bool Database::save(const char* filename) const 136 136 { 137 auto scope = DECLARE_CATCH_SCOPE(m_vm);138 137 auto out = FilePrintStream::open(filename, "w"); 139 138 if (!out) 140 139 return false; 141 140 142 String data = toJSON(); 143 if (UNLIKELY(scope.exception())) { 144 scope.clearException(); 145 return false; 146 } 147 out->print(data); 141 out->print(toJSON()); 148 142 return true; 149 143 }
Note:
See TracChangeset
for help on using the changeset viewer.