Changeset 248716 in webkit
- Timestamp:
- Aug 15, 2019 9:31:19 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r248709 r248716 1 2019-08-15 Mark Lam <mark.lam@apple.com> 2 3 More missing exception checks in String.prototype. 4 https://bugs.webkit.org/show_bug.cgi?id=200762 5 <rdar://problem/54333896> 6 7 Reviewed by Michael Saboff. 8 9 * stress/missing-exception-check-in-string-lastIndexOf.js: Added. 10 * stress/missing-exception-check-in-string-toLower.js: Added. 11 * stress/missing-exception-check-in-string-toUpper.js: Added. 12 1 13 2019-08-14 Mark Lam <mark.lam@apple.com> 2 14 -
trunk/Source/JavaScriptCore/ChangeLog
r248711 r248716 1 2019-08-15 Mark Lam <mark.lam@apple.com> 2 3 More missing exception checks in String.prototype. 4 https://bugs.webkit.org/show_bug.cgi?id=200762 5 <rdar://problem/54333896> 6 7 Reviewed by Michael Saboff. 8 9 * runtime/StringPrototype.cpp: 10 (JSC::replaceUsingRegExpSearch): 11 (JSC::operationStringProtoFuncReplaceRegExpString): 12 (JSC::stringProtoFuncLastIndexOf): 13 (JSC::stringProtoFuncToLowerCase): 14 (JSC::stringProtoFuncToUpperCase): 15 1 16 2019-08-15 Joseph Pecoraro <pecoraro@apple.com> 2 17 -
trunk/Source/JavaScriptCore/runtime/StringPrototype.cpp
r246780 r248716 530 530 531 531 String source = string->value(exec); 532 RETURN_IF_EXCEPTION(scope, nullptr); 532 533 unsigned sourceLen = source.length(); 533 534 RETURN_IF_EXCEPTION(scope, nullptr); … … 755 756 VM& vm = exec->vm(); 756 757 NativeCallFrameTracer tracer(&vm, exec); 757 758 auto scope = DECLARE_THROW_SCOPE(vm); 759 758 760 CallData callData; 759 761 String replacementString = replaceString->value(exec); 760 return replaceUsingRegExpSearch( 761 vm, exec, thisValue, searchValue, callData, CallType::None, replacementString, replaceString); 762 RETURN_IF_EXCEPTION(scope, nullptr); 763 RELEASE_AND_RETURN(scope, replaceUsingRegExpSearch( 764 vm, exec, thisValue, searchValue, callData, CallType::None, replacementString, replaceString)); 762 765 } 763 766 … … 1126 1129 1127 1130 String thisString = thisJSString->value(exec); 1131 RETURN_IF_EXCEPTION(scope, encodedJSValue()); 1128 1132 String otherString = otherJSString->value(exec); 1133 RETURN_IF_EXCEPTION(scope, encodedJSValue()); 1129 1134 size_t result; 1130 1135 if (!startPosition) … … 1447 1452 RETURN_IF_EXCEPTION(scope, encodedJSValue()); 1448 1453 String s = sVal->value(exec); 1454 RETURN_IF_EXCEPTION(scope, encodedJSValue()); 1449 1455 String lowercasedString = s.convertToLowercaseWithoutLocale(); 1450 1456 if (lowercasedString.impl() == s.impl()) … … 1464 1470 RETURN_IF_EXCEPTION(scope, encodedJSValue()); 1465 1471 String s = sVal->value(exec); 1472 RETURN_IF_EXCEPTION(scope, encodedJSValue()); 1466 1473 String uppercasedString = s.convertToUppercaseWithoutLocale(); 1467 1474 if (uppercasedString.impl() == s.impl())
Note: See TracChangeset
for help on using the changeset viewer.