[api-minor] Convert getOpenAction to return data in a Map#21621
Conversation
Compared to regular Objects there's a number of advantages to using Maps: - They support proper iteration. - They have a simple way to check for the existence of data. - They have a simple/efficient way to check the number of elements. If this functionality was added today, I cannot imagine that we'd choose an Object for this data.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #21621 +/- ##
=======================================
Coverage 89.85% 89.85%
=======================================
Files 263 263
Lines 66769 66769
=======================================
+ Hits 59992 59996 +4
+ Misses 6777 6773 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
timvandermeij
left a comment
There was a problem hiding this comment.
r=me, with passing browser tests. Thanks!
|
/botio browsertest |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/5101c374aef39fa/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @timvandermeij received. Current queue size: 0 Live output at: http://54.193.163.58:8877/da2f74a7f098306/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/5101c374aef39fa/output.txt Total script time: 18.32 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/da2f74a7f098306/output.txt Total script time: 23.70 mins
|
Compared to regular Objects there's a number of advantages to using Maps:
If this functionality was added today, I cannot imagine that we'd choose an Object for this data.