Skip to content

Shorten some Array.prototype.map() callbacks - #21780

Merged
timvandermeij merged 1 commit into
mozilla:masterfrom
Snuffleupagus:shorter-map-callback
Aug 15, 2026
Merged

Shorten some Array.prototype.map() callbacks#21780
timvandermeij merged 1 commit into
mozilla:masterfrom
Snuffleupagus:shorter-map-callback

Conversation

@Snuffleupagus

Copy link
Copy Markdown
Collaborator

In a few spots we can directly pass the function, and don't need to create an "intermediate" arrow function.

In a few spots we can directly pass the function, and don't need to create an "intermediate" arrow function.
@codecov-commenter

codecov-commenter commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 90.16%. Comparing base (b96d745) to head (263bc08).

Files with missing lines Patch % Lines
src/core/xfa/xhtml.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #21780   +/-   ##
=======================================
  Coverage   90.15%   90.16%           
=======================================
  Files         264      264           
  Lines       67253    67251    -2     
=======================================
+ Hits        60632    60635    +3     
+ Misses       6621     6616    -5     
Flag Coverage Δ
browsertest 66.33% <66.66%> (+<0.01%) ⬆️
fonttest 9.00% <100.00%> (ø)
integrationtest 69.36% <66.66%> (+<0.01%) ⬆️
unittest 58.27% <33.33%> (+<0.01%) ⬆️
unittestcli 56.80% <33.33%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Snuffleupagus

Copy link
Copy Markdown
Collaborator Author

/botio browsertest

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_browsertest from @Snuffleupagus received. Current queue size: 1

Live output at: http://54.241.84.105:8877/0181c4c34b0a3d4/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Received

Command cmd_browsertest from @Snuffleupagus received. Current queue size: 1

Live output at: http://54.193.163.58:8877/764c63f42df19a0/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/0181c4c34b0a3d4/output.txt

Total script time: 17.91 mins

  • Regression tests: Passed

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/764c63f42df19a0/output.txt

Total script time: 22.10 mins

  • Regression tests: Passed

@calixteman calixteman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

@timvandermeij
timvandermeij merged commit 4b274a8 into mozilla:master Aug 15, 2026
20 of 21 checks passed
@timvandermeij

Copy link
Copy Markdown
Collaborator

Thanks!

@Snuffleupagus
Snuffleupagus deleted the shorter-map-callback branch August 15, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants