haikuwebkit/LayoutTests/js/array-findLastIndex.html

11 lines
329 B
HTML
Raw Permalink Normal View History

Implement Array.prototype.findLast and Array.prototype.findLastIndex https://bugs.webkit.org/show_bug.cgi?id=227939 Reviewed by Yusuke Suzuki. JSTests: * stress/typedarray-findLast.js: Added. (keepEven): (keepEvenAndChange): (isBigEnoughAndException): * stress/typedarray-findLastIndex.js: Added. (keepEven): (keepEvenAndChange): (isBigEnoughAndException): Source/JavaScriptCore: * builtins/ArrayPrototype.js: (findLast): Added. (findLastIndex): Added. (JSC::ArrayPrototype::finishCreation): * runtime/JSTypedArrayViewPrototype.cpp: * builtins/TypedArrayPrototype.js: (findLast): Added. (findLastIndex): Added. * runtime/ArrayPrototype.cpp: (JSC::JSTypedArrayViewPrototype::finishCreation): * runtime/OptionsList.h: Source/WebInspectorUI: * UserInterface/Models/NativeFunctionParameters.js: LayoutTests: * js/array-findLast.html: Added. * js/array-findLast-expected.txt: Added. * js/script-tests/array-findLast.js: Added. (passUndefined): (passZero): (passNull): (passFalse): (passEmptyString): (passEven): (passAfter5): (toObject): (findItemAddedDuringSearch): (numberOfCallbacksInFindInArrayWithHoles): (throwError): * js/array-findLastIndex.html: Added. * js/array-findLastIndex-expected.txt: Added. * js/script-tests/array-findLastIndex.js: Added. (passUndefined): (passZero): (passNull): (passFalse): (passEmptyString): (passEven): (passAfter5): (toObject): (findItemAddedDuringSearch): (numberOfCallbacksInFindIndexInArrayWithHoles): (throwError): Canonical link: https://commits.webkit.org/239681@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279937 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-15 03:11:53 +00:00
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><!-- webkit-test-runner [ jscOptions=--useArrayFindLastMethod=true ] -->
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body>
<script src="script-tests/array-findLastIndex.js"></script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>