Bug 194322 - Add Array.prototype.{flat,flatMap} to unscopables
Summary: Add Array.prototype.{flat,flatMap} to unscopables
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Michael Saboff
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-02-05 17:40 PST by Michael Saboff
Modified: 2019-06-24 15:30 PDT (History)
11 users (show)

See Also:


Attachments
Patch (3.05 KB, patch)
2019-06-24 10:14 PDT, Alexey Shvayka
no flags Details | Formatted Diff | Diff
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 Details
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 Details
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 Details
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 Details
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 Details
Patch (5.74 KB, patch)
2019-06-24 13:28 PDT, Alexey Shvayka
no flags Details | Formatted Diff | Diff
Patch (6.38 KB, patch)
2019-06-24 13:32 PDT, Alexey Shvayka
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 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.
Comment 1 Alexey Shvayka 2019-06-24 10:14:17 PDT
Created attachment 372770 [details]
Patch

Properties order is according to spec.
Comment 2 EWS Watchlist 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
Comment 3 EWS Watchlist 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
Comment 4 EWS Watchlist 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
Comment 5 EWS Watchlist 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
Comment 6 EWS Watchlist 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
Comment 7 EWS Watchlist 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
Comment 8 EWS Watchlist 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
Comment 9 EWS Watchlist 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
Comment 10 EWS Watchlist 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
Comment 11 EWS Watchlist 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
Comment 12 EWS Watchlist 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
Comment 13 jsc-armv7 EWS 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
Comment 14 Alexey Shvayka 2019-06-24 13:28:04 PDT
Created attachment 372793 [details]
Patch

Adjust test.
Comment 15 Alexey Shvayka 2019-06-24 13:32:32 PDT
Created attachment 372795 [details]
Patch

Fix another test.
Comment 16 Keith Miller 2019-06-24 14:58:39 PDT
Comment on attachment 372795 [details]
Patch

r=me.
Comment 17 WebKit Commit Bot 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>
Comment 18 WebKit Commit Bot 2019-06-24 15:29:09 PDT
All reviewed patches have been landed.  Closing bug.
Comment 19 Radar WebKit Bug Importer 2019-06-24 15:30:25 PDT
<rdar://problem/52074439>