René's URL Explorer Experiment


Title: test: use String.prototype.repeat() for clarity by Trott · Pull Request #5311 · nodejs/node · GitHub

Open Graph Title: test: use String.prototype.repeat() for clarity by Trott · Pull Request #5311 · nodejs/node

X Title: test: use String.prototype.repeat() for clarity by Trott · Pull Request #5311 · nodejs/node

Description: Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.

Open Graph Description: There are a few places where tests repeatedly concatenate strings to themselves in order to make them very long. Using .repeat() makes the code clearer. For example, before: for (var i = 0; i < ...

X Description: There are a few places where tests repeatedly concatenate strings to themselves in order to make them very long. Using .repeat() makes the code clearer. For example, before: for (var i = 0; i &...

Opengraph URL: https://github.com/nodejs/node/pull/5311

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:57c57371-3559-122c-bcf1-0b4e6614659a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEA9E:363DB3:D2ED9C:12AB3A7:6A4F51B9
html-safe-nonce7cc20f066429f2e2ef9dcac63a296813cbde10b27a829806168a7ae46141eea7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTlFOjM2M0RCMzpEMkVEOUM6MTJBQjNBNzo2QTRGNTFCOSIsInZpc2l0b3JfaWQiOiIxNjY0NDQzOTg1MjY1OTA2MTA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd73680a6a968722b8cba78d30098bc0b9a83a2af7c800b21f019cd87b495f2dc
hovercard-subject-tagpull_request:59878886
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/nodejs/node/5311/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/71b7ac94518a8ac5b3279f4b804736cdf13106b45d7b1253beace5ad7d53dbe1/nodejs/node/pull/5311
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/71b7ac94518a8ac5b3279f4b804736cdf13106b45d7b1253beace5ad7d53dbe1/nodejs/node/pull/5311
og:image:altThere are a few places where tests repeatedly concatenate strings to themselves in order to make them very long. Using .repeat() makes the code clearer. For example, before: for (var i = 0; i < ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTrott
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-cache
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/5311#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F5311
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F5311
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/5311
Reloadhttps://github.com/nodejs/node/pull/5311
Reloadhttps://github.com/nodejs/node/pull/5311
Please reload this pagehttps://github.com/nodejs/node/pull/5311
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/5311
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.3k https://github.com/nodejs/node/issues
Pull requests 970 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Trotthttps://github.com/Trott
nodejs:masterhttps://github.com/nodejs/node/tree/master
Trott:moar-recommendedhttps://github.com/Trott/io.js/tree/moar-recommended
Conversationhttps://github.com/nodejs/node/pull/5311
Commits1 (1)https://github.com/nodejs/node/pull/5311/commits
Checkshttps://github.com/nodejs/node/pull/5311/checks
Files changedhttps://github.com/nodejs/node/pull/5311/files
test: use String.prototype.repeat() for clarityhttps://github.com/nodejs/node/pull/5311#top
Trotthttps://github.com/Trott
nodejs:masterhttps://github.com/nodejs/node/tree/master
Trott:moar-recommendedhttps://github.com/Trott/io.js/tree/moar-recommended
https://github.com/Trott
Trotthttps://github.com/Trott
Feb 18, 2016https://github.com/nodejs/node/pull/5311#issue-134725390
Please reload this pagehttps://github.com/nodejs/node/pull/5311
https://github.com/Trott
Trotthttps://github.com/Trott
test https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Atest
lts-watch-v4.x https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Alts-watch-v4.x
Feb 18, 2016https://github.com/nodejs/node/pull/5311#event-555851376
thefourtheyehttps://github.com/thefourtheye
Feb 19, 2016 https://github.com/nodejs/node/pull/5311#discussion-diff-53413374
View reviewed changes https://github.com/nodejs/node/pull/5311/files#diff-acda898e1b5e74d4276eef7105ed091c991615e74795ed36d4a5db8a4b071ea1
test/parallel/test-crypto-from-binary.jshttps://github.com/nodejs/node/pull/5311/files#diff-acda898e1b5e74d4276eef7105ed091c991615e74795ed36d4a5db8a4b071ea1
thefourtheyehttps://github.com/thefourtheye
Feb 19, 2016https://github.com/nodejs/node/pull/5311#discussion_r53413374
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/5311
Trotthttps://github.com/Trott
Feb 19, 2016https://github.com/nodejs/node/pull/5311#discussion_r53416689
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/5311
thefourtheyehttps://github.com/thefourtheye
Feb 19, 2016https://github.com/nodejs/node/pull/5311#discussion_r53416894
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/5311
https://github.com/thefourtheye
thefourtheyehttps://github.com/thefourtheye
Feb 19, 2016https://github.com/nodejs/node/pull/5311#issuecomment-186021922
Please reload this pagehttps://github.com/nodejs/node/pull/5311
https://github.com/targos
targoshttps://github.com/targos
Feb 19, 2016https://github.com/nodejs/node/pull/5311#issuecomment-186101777
Please reload this pagehttps://github.com/nodejs/node/pull/5311
jasnellhttps://github.com/jasnell
Feb 19, 2016 https://github.com/nodejs/node/pull/5311#discussion-diff-53529090
View reviewed changes https://github.com/nodejs/node/pull/5311/files#diff-c5fda72fccfd6e7038e94e88278171d89b6dfe9596c6f7aa5c7599e5a4c35e48
test/parallel/test-http-dns-error.jshttps://github.com/nodejs/node/pull/5311/files#diff-c5fda72fccfd6e7038e94e88278171d89b6dfe9596c6f7aa5c7599e5a4c35e48
jasnellhttps://github.com/jasnell
Feb 19, 2016https://github.com/nodejs/node/pull/5311#discussion_r53529090
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/5311
https://github.com/jasnell
jasnellhttps://github.com/jasnell
Feb 19, 2016https://github.com/nodejs/node/pull/5311#issuecomment-186437796
Please reload this pagehttps://github.com/nodejs/node/pull/5311
https://github.com/Trott
test: use String.prototype.repeat() for clarityhttps://github.com/nodejs/node/pull/5311/commits/95cc99ea72936dd459fcc3cb17daa05097b72e73
95cc99ehttps://github.com/nodejs/node/pull/5311/commits/95cc99ea72936dd459fcc3cb17daa05097b72e73
https://github.com/Trott
Trotthttps://github.com/Trott
force-pushedhttps://github.com/nodejs/node/compare/c2d9deaf76217f81773f5ca29613a63b5e5ca994..95cc99ea72936dd459fcc3cb17daa05097b72e73
c2d9deahttps://github.com/nodejs/node/commit/c2d9deaf76217f81773f5ca29613a63b5e5ca994
95cc99ehttps://github.com/nodejs/node/commit/95cc99ea72936dd459fcc3cb17daa05097b72e73
Compare https://github.com/nodejs/node/compare/c2d9deaf76217f81773f5ca29613a63b5e5ca994..95cc99ea72936dd459fcc3cb17daa05097b72e73
February 19, 2016 23:41https://github.com/nodejs/node/pull/5311#event-557261552
https://github.com/Trott
Trotthttps://github.com/Trott
Feb 19, 2016https://github.com/nodejs/node/pull/5311#issuecomment-186454906
@jasnellhttps://github.com/jasnell
https://ci.nodejs.org/job/node-test-pull-request/1707/https://ci.nodejs.org/job/node-test-pull-request/1707/
Please reload this pagehttps://github.com/nodejs/node/pull/5311
https://github.com/jasnell
jasnellhttps://github.com/jasnell
Feb 20, 2016https://github.com/nodejs/node/pull/5311#issuecomment-186464829
Please reload this pagehttps://github.com/nodejs/node/pull/5311
Trotthttps://github.com/Trott
Feb 21, 2016 https://github.com/nodejs/node/pull/5311#ref-commit-97f76f3
https://github.com/Trott
test: use String.prototype.repeat() for clarityhttps://github.com/Trott/io.js/commit/97f76f3f04261a1b3b382dc1962c4b1e20c55b6a
97f76f3https://github.com/Trott/io.js/commit/97f76f3f04261a1b3b382dc1962c4b1e20c55b6a
nodejs#5311https://github.com/nodejs/node/pull/5311
https://github.com/Trott
Trotthttps://github.com/Trott
Feb 21, 2016https://github.com/nodejs/node/pull/5311#issuecomment-186922959
97f76f3https://github.com/nodejs/node/commit/97f76f3f04261a1b3b382dc1962c4b1e20c55b6a
Please reload this pagehttps://github.com/nodejs/node/pull/5311
https://github.com/Trott
Trotthttps://github.com/Trott
Feb 21, 2016https://github.com/nodejs/node/pull/5311#event-558669381
rvagghttps://github.com/rvagg
Feb 21, 2016 https://github.com/nodejs/node/pull/5311#ref-commit-0e85530
https://github.com/Trott
https://github.com/rvagg
test: use String.prototype.repeat() for clarityhttps://github.com/nodejs/node/commit/0e85530d8c3a90a6f7b0dd0a0ad9eeb21b637e27
0e85530https://github.com/nodejs/node/commit/0e85530d8c3a90a6f7b0dd0a0ad9eeb21b637e27
#5311https://github.com/nodejs/node/pull/5311
https://github.com/JacksonTian
JacksonTianhttps://github.com/JacksonTian
Feb 22, 2016 https://github.com/nodejs/node/pull/5311#ref-pullrequest-135347502
lib,test,benchmark: simplify code with String.prototype.repeat() #5359 https://github.com/nodejs/node/pull/5359
MylesBorinshttps://github.com/MylesBorins
Mar 1, 2016 https://github.com/nodejs/node/pull/5311#ref-commit-2081ab7
https://github.com/Trott
test: use String.prototype.repeat() for clarityhttps://github.com/nodejs/node/commit/2081ab72e0e94212104518c36c17ce6b04584280
2081ab7https://github.com/nodejs/node/commit/2081ab72e0e94212104518c36c17ce6b04584280
#5311https://github.com/nodejs/node/pull/5311
https://github.com/MylesBorins
MylesBorinshttps://github.com/MylesBorins
land-on-v4.x https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aland-on-v4.x
lts-watch-v4.x https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Alts-watch-v4.x
Mar 1, 2016https://github.com/nodejs/node/pull/5311#event-573711134
MylesBorinshttps://github.com/MylesBorins
Mar 1, 2016 https://github.com/nodejs/node/pull/5311#ref-commit-9d6623e
https://github.com/Trott
test: use String.prototype.repeat() for clarityhttps://github.com/nodejs/node/commit/9d6623e1d1b09813577f89120c91e0e7f6e36ba3
9d6623ehttps://github.com/nodejs/node/commit/9d6623e1d1b09813577f89120c91e0e7f6e36ba3
#5311https://github.com/nodejs/node/pull/5311
MylesBorinshttps://github.com/MylesBorins
Mar 2, 2016 https://github.com/nodejs/node/pull/5311#ref-commit-6d5f4c4
https://github.com/Trott
test: use String.prototype.repeat() for clarityhttps://github.com/nodejs/node/commit/6d5f4c418aaae60d6322e3b00ffcebc213251e6b
6d5f4c4https://github.com/nodejs/node/commit/6d5f4c418aaae60d6322e3b00ffcebc213251e6b
#5311https://github.com/nodejs/node/pull/5311
https://github.com/Trott
Trotthttps://github.com/Trott
January 9, 2022 22:01https://github.com/nodejs/node/pull/5311#event-5862808971
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F5311
test https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Atest
Please reload this pagehttps://github.com/nodejs/node/pull/5311
https://github.com/Trott
https://github.com/thefourtheye
https://github.com/targos
https://github.com/jasnell
https://github.com/MylesBorins
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.