Changeset 243665 in webkit
- Timestamp:
- Mar 29, 2019 2:53:54 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r243639 r243665 1 2019-03-29 Tadeu Zagallo <tzagallo@apple.com> 2 3 Assertion failed in JSC::createError 4 https://bugs.webkit.org/show_bug.cgi?id=196305 5 <rdar://problem/49387382> 6 7 Reviewed by Saam Barati. 8 9 * stress/create-error-out-of-memory-rope-string-2.js: Added. 10 (assert): 11 (catch): 12 1 13 2019-03-28 Saam Barati <sbarati@apple.com> 2 14 -
trunk/Source/JavaScriptCore/ChangeLog
r243663 r243665 1 2019-03-29 Tadeu Zagallo <tzagallo@apple.com> 2 3 Assertion failed in JSC::createError 4 https://bugs.webkit.org/show_bug.cgi?id=196305 5 <rdar://problem/49387382> 6 7 Reviewed by Saam Barati. 8 9 JSC::createError assumes that `errorDescriptionForValue` will either 10 throw an exception or return a valid description string. However, that 11 is not true if the value is a rope string and we successfully resolve it, 12 but later fail to wrap the string in quotes with `tryMakeString`. 13 14 * runtime/ExceptionHelpers.cpp: 15 (JSC::createError): 16 1 17 2019-03-29 Devin Rousso <drousso@apple.com> 2 18 -
trunk/Source/JavaScriptCore/runtime/ExceptionHelpers.cpp
r243335 r243665 276 276 277 277 String valueDescription = errorDescriptionForValue(exec, value); 278 ASSERT(scope.exception() || !!valueDescription); 279 if (!valueDescription) { 278 if (scope.exception() || !valueDescription) { 280 279 scope.clearException(); 281 280 return createOutOfMemoryError(exec);
Note: See TracChangeset
for help on using the changeset viewer.