RESOLVED FIXED 194322
Add Array.prototype.{flat,flatMap} to unscopables
https://bugs.webkit.org/show_bug.cgi?id=194322
Summary Add Array.prototype.{flat,flatMap} to unscopables
Michael Saboff
Reported 2019-02-05 17:40:31 PST
These methods have been added to the ES spec. According to the spec pull request (https://github.com/tc39/ecma262/pull/1309) and to conform to the other JS engines, we should add these properties to @@unscopables. The text below the `Array.prototype[@@unscopables]` section in the ES spec makes it clear that the intention is to *prevent* issues.
Attachments
Patch (3.05 KB, patch)
2019-06-24 10:14 PDT, Alexey Shvayka
no flags
Archive of layout-test-results from ews103 for mac-highsierra (3.21 MB, application/zip)
2019-06-24 11:25 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews104 for mac-highsierra-wk2 (2.77 MB, application/zip)
2019-06-24 11:33 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews112 for mac-highsierra (3.03 MB, application/zip)
2019-06-24 12:05 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews210 for win-future (13.69 MB, application/zip)
2019-06-24 12:07 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews121 for ios-simulator-wk2 (2.72 MB, application/zip)
2019-06-24 12:14 PDT, EWS Watchlist
no flags
Patch (5.74 KB, patch)
2019-06-24 13:28 PDT, Alexey Shvayka
no flags
Patch (6.38 KB, patch)
2019-06-24 13:32 PDT, Alexey Shvayka
no flags
Alexey Shvayka
Comment 1 2019-06-24 10:14:17 PDT
Created attachment 372770 [details] Patch Properties order is according to spec.
EWS Watchlist
Comment 2 2019-06-24 11:25:47 PDT
Comment on attachment 372770 [details] Patch Attachment 372770 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/12563750 New failing tests: js/array-unscopables-properties.html
EWS Watchlist
Comment 3 2019-06-24 11:25:49 PDT
Created attachment 372773 [details] Archive of layout-test-results from ews103 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 4 2019-06-24 11:33:10 PDT
Comment on attachment 372770 [details] Patch Attachment 372770 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/12563760 New failing tests: js/array-unscopables-properties.html
EWS Watchlist
Comment 5 2019-06-24 11:33:12 PDT
Created attachment 372775 [details] Archive of layout-test-results from ews104 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 6 2019-06-24 12:05:30 PDT
Comment on attachment 372770 [details] Patch Attachment 372770 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/12563793 New failing tests: js/array-unscopables-properties.html
EWS Watchlist
Comment 7 2019-06-24 12:05:32 PDT
Created attachment 372780 [details] Archive of layout-test-results from ews112 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 8 2019-06-24 12:07:30 PDT
Comment on attachment 372770 [details] Patch Attachment 372770 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/12563904 New failing tests: js/array-unscopables-properties.html
EWS Watchlist
Comment 9 2019-06-24 12:07:32 PDT
Created attachment 372781 [details] Archive of layout-test-results from ews210 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews210 Port: win-future Platform: CYGWIN_NT-10.0-17763-3.0.5-338.x86_64-x86_64-64bit
EWS Watchlist
Comment 10 2019-06-24 12:14:56 PDT
Comment on attachment 372770 [details] Patch Attachment 372770 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/12563813 New failing tests: js/array-unscopables-properties.html
EWS Watchlist
Comment 11 2019-06-24 12:14:57 PDT
Created attachment 372784 [details] Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.14.5
EWS Watchlist
Comment 12 2019-06-24 12:30:23 PDT
Comment on attachment 372770 [details] Patch Attachment 372770 [details] did not pass jsc-ews (mac): Output: https://webkit-queues.webkit.org/results/12563885 New failing tests: stress/unscopables.js.ftl-no-cjit-no-inline-validate jsc-layout-tests.yaml/js/script-tests/array-unscopables-properties.js.layout-no-ftl stress/unscopables.js.no-ftl stress/unscopables.js.no-cjit-validate-phases stress/unscopables.js.dfg-maximal-flush-validate-no-cjit stress/unscopables.js.dfg-eager-no-cjit-validate stress/unscopables.js.default stress/unscopables.js.ftl-eager-no-cjit-b3o1 stress/unscopables.js.dfg-eager stress/unscopables.js.bytecode-cache stress/unscopables.js.ftl-no-cjit-validate-sampling-profiler jsc-layout-tests.yaml/js/script-tests/array-unscopables-properties.js.layout jsc-layout-tests.yaml/js/script-tests/array-unscopables-properties.js.layout-ftl-eager-no-cjit jsc-layout-tests.yaml/js/script-tests/array-unscopables-properties.js.layout-no-cjit stress/unscopables.js.no-llint stress/unscopables.js.ftl-eager stress/unscopables.js.ftl-no-cjit-no-put-stack-validate stress/unscopables.js.ftl-no-cjit-b3o0 stress/unscopables.js.mini-mode jsc-layout-tests.yaml/js/script-tests/array-unscopables-properties.js.layout-dfg-eager-no-cjit jsc-layout-tests.yaml/js/script-tests/array-unscopables-properties.js.layout-no-llint jsc-layout-tests.yaml/js/script-tests/array-unscopables-properties.js.layout-ftl-no-cjit stress/unscopables.js.ftl-eager-no-cjit stress/unscopables.js.no-cjit-collect-continuously stress/unscopables.js.ftl-no-cjit-small-pool apiTests
jsc-armv7 EWS
Comment 13 2019-06-24 12:44:00 PDT
Comment on attachment 372770 [details] Patch Attachment 372770 [details] did not pass jsc-armv7-ews (jsc-only): Output: https://webkit-queues.webkit.org/results/12563910 New failing tests: jsc-layout-tests.yaml/js/script-tests/array-unscopables-properties.js.layout-no-cjit stress/unscopables.js.mini-mode jsc-layout-tests.yaml/js/script-tests/array-unscopables-properties.js.layout-dfg-eager-no-cjit stress/unscopables.js.dfg-eager jsc-layout-tests.yaml/js/script-tests/array-unscopables-properties.js.layout-no-llint jsc-layout-tests.yaml/js/script-tests/array-unscopables-properties.js.layout stress/unscopables.js.no-llint stress/unscopables.js.no-cjit-validate-phases stress/unscopables.js.dfg-eager-no-cjit-validate stress/unscopables.js.dfg-maximal-flush-validate-no-cjit stress/unscopables.js.default stress/unscopables.js.no-cjit-collect-continuously apiTests
Alexey Shvayka
Comment 14 2019-06-24 13:28:04 PDT
Created attachment 372793 [details] Patch Adjust test.
Alexey Shvayka
Comment 15 2019-06-24 13:32:32 PDT
Created attachment 372795 [details] Patch Fix another test.
Keith Miller
Comment 16 2019-06-24 14:58:39 PDT
Comment on attachment 372795 [details] Patch r=me.
WebKit Commit Bot
Comment 17 2019-06-24 15:29:07 PDT
Comment on attachment 372795 [details] Patch Clearing flags on attachment: 372795 Committed r246765: <https://trac.webkit.org/changeset/246765>
WebKit Commit Bot
Comment 18 2019-06-24 15:29:09 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 19 2019-06-24 15:30:25 PDT
Note You need to log in before you can comment on or make changes to this bug.