Bug 188430 - Array.prototype.sort should call @toLength instead of ">>> 0"
Summary: Array.prototype.sort should call @toLength instead of ">>> 0"
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Keith Miller
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-08-08 20:47 PDT by Keith Miller
Modified: 2018-08-09 11:03 PDT (History)
7 users (show)

See Also:


Attachments
Patch (3.43 KB, patch)
2018-08-08 20:47 PDT, Keith Miller
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-sierra (2.31 MB, application/zip)
2018-08-08 21:52 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews104 for mac-sierra-wk2 (2.79 MB, application/zip)
2018-08-08 22:01 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews112 for mac-sierra (3.05 MB, application/zip)
2018-08-08 22:28 PDT, EWS Watchlist
no flags Details
Patch (9.79 KB, patch)
2018-08-08 22:33 PDT, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (9.94 KB, patch)
2018-08-08 22:35 PDT, Keith Miller
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-sierra (2.44 MB, application/zip)
2018-08-08 23:28 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews104 for mac-sierra-wk2 (2.82 MB, application/zip)
2018-08-08 23:50 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews117 for mac-sierra (3.02 MB, application/zip)
2018-08-09 00:14 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews122 for ios-simulator-wk2 (2.25 MB, application/zip)
2018-08-09 00:30 PDT, EWS Watchlist
no flags Details
Patch (11.78 KB, patch)
2018-08-09 10:37 PDT, Keith Miller
saam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Miller 2018-08-08 20:47:17 PDT
Array.prototype.sort should call @toLength instead of ">>> 0"
Comment 1 Keith Miller 2018-08-08 20:47:34 PDT
Created attachment 346816 [details]
Patch
Comment 2 EWS Watchlist 2018-08-08 21:52:39 PDT
Comment on attachment 346816 [details]
Patch

Attachment 346816 [details] did not pass mac-ews (mac):
Output: https://webkit-queues.webkit.org/results/8805778

New failing tests:
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T1.html
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T2.html
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T3.html
Comment 3 EWS Watchlist 2018-08-08 21:52:41 PDT
Created attachment 346819 [details]
Archive of layout-test-results from ews102 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 4 EWS Watchlist 2018-08-08 22:01:30 PDT
Comment on attachment 346816 [details]
Patch

Attachment 346816 [details] did not pass mac-wk2-ews (mac-wk2):
Output: https://webkit-queues.webkit.org/results/8805797

New failing tests:
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T1.html
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T2.html
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T3.html
Comment 5 EWS Watchlist 2018-08-08 22:01:32 PDT
Created attachment 346821 [details]
Archive of layout-test-results from ews104 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 6 EWS Watchlist 2018-08-08 22:28:36 PDT
Comment on attachment 346816 [details]
Patch

Attachment 346816 [details] did not pass mac-debug-ews (mac):
Output: https://webkit-queues.webkit.org/results/8805836

New failing tests:
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T1.html
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T2.html
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T3.html
Comment 7 EWS Watchlist 2018-08-08 22:28:38 PDT
Created attachment 346822 [details]
Archive of layout-test-results from ews112 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 8 Keith Miller 2018-08-08 22:33:36 PDT
Created attachment 346823 [details]
Patch
Comment 9 Keith Miller 2018-08-08 22:35:19 PDT
Created attachment 346824 [details]
Patch
Comment 10 EWS Watchlist 2018-08-08 23:28:40 PDT
Comment on attachment 346824 [details]
Patch

Attachment 346824 [details] did not pass mac-ews (mac):
Output: https://webkit-queues.webkit.org/results/8806499

New failing tests:
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T2.html
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T3.html
Comment 11 EWS Watchlist 2018-08-08 23:28:42 PDT
Created attachment 346825 [details]
Archive of layout-test-results from ews103 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 12 EWS Watchlist 2018-08-08 23:49:58 PDT
Comment on attachment 346824 [details]
Patch

Attachment 346824 [details] did not pass mac-wk2-ews (mac-wk2):
Output: https://webkit-queues.webkit.org/results/8806544

New failing tests:
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T2.html
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T3.html
Comment 13 EWS Watchlist 2018-08-08 23:50:00 PDT
Created attachment 346827 [details]
Archive of layout-test-results from ews104 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 14 EWS Watchlist 2018-08-09 00:14:01 PDT
Comment on attachment 346824 [details]
Patch

Attachment 346824 [details] did not pass mac-debug-ews (mac):
Output: https://webkit-queues.webkit.org/results/8806564

New failing tests:
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T2.html
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T3.html
Comment 15 EWS Watchlist 2018-08-09 00:14:03 PDT
Created attachment 346828 [details]
Archive of layout-test-results from ews117 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 16 EWS Watchlist 2018-08-09 00:30:17 PDT
Comment on attachment 346824 [details]
Patch

Attachment 346824 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/8806589

New failing tests:
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T2.html
sputnik/Conformance/15_Native_Objects/15.4_Array/15.4.4/15.4.4.11_Array_prototype_sort/S15.4.4.11_A4_T3.html
Comment 17 EWS Watchlist 2018-08-09 00:30:19 PDT
Created attachment 346829 [details]
Archive of layout-test-results from ews122 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.4
Comment 18 Keith Miller 2018-08-09 10:37:00 PDT
Created attachment 346842 [details]
Patch
Comment 19 Saam Barati 2018-08-09 10:51:23 PDT
Comment on attachment 346842 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=346842&action=review

> JSTests/ChangeLog:8
> +        * test262/expectations.yaml:

can we add a non test262 test as well.
Comment 20 Keith Miller 2018-08-09 10:55:42 PDT
Comment on attachment 346842 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=346842&action=review

>> JSTests/ChangeLog:8
>> +        * test262/expectations.yaml:
> 
> can we add a non test262 test as well.

That seems unnecessary. Unless the spec changes here I don't see why we would start failing this test again and not flag it.
Comment 21 Saam Barati 2018-08-09 10:57:33 PDT
(In reply to Keith Miller from comment #20)
> Comment on attachment 346842 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=346842&action=review
> 
> >> JSTests/ChangeLog:8
> >> +        * test262/expectations.yaml:
> > 
> > can we add a non test262 test as well.
> 
> That seems unnecessary. Unless the spec changes here I don't see why we
> would start failing this test again and not flag it.

👍🏼
Comment 22 Keith Miller 2018-08-09 11:02:13 PDT
Committed r234728: <https://trac.webkit.org/changeset/234728>
Comment 23 Radar WebKit Bug Importer 2018-08-09 11:03:36 PDT
<rdar://problem/43101740>