Changeset 243335 in webkit
- Timestamp:
- Mar 21, 2019, 3:04:56 PM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
runtime/ExceptionHelpers.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r243330 r243335 1 2019-03-21 Tadeu Zagallo <tzagallo@apple.com> 2 3 JSC::createError should clear exception thrown by errorDescriptionForValue 4 https://bugs.webkit.org/show_bug.cgi?id=196089 5 6 Reviewed by Mark Lam. 7 8 errorDescriptionForValue returns a nullString in case of failure, but it 9 might also throw an OOM exception when resolving a rope string. We need 10 to clear any potential exceptions thrown by errorDescriptionForValue 11 before returning the OOM from JSC::createError. 12 13 * runtime/ExceptionHelpers.cpp: 14 (JSC::createError): 15 1 16 2019-03-21 Robin Morisset <rmorisset@apple.com> 2 17 -
trunk/Source/JavaScriptCore/runtime/ExceptionHelpers.cpp
r243246 r243335 276 276 277 277 String valueDescription = errorDescriptionForValue(exec, value); 278 if (!valueDescription) 278 ASSERT(scope.exception() || !!valueDescription); 279 if (!valueDescription) { 280 scope.clearException(); 279 281 return createOutOfMemoryError(exec); 282 } 280 283 String errorMessage = tryMakeString(valueDescription, ' ', message); 281 284 if (!errorMessage)
Note:
See TracChangeset
for help on using the changeset viewer.