René's URL Explorer Experiment


Title: lib: refactor internal webidl converters by panva · Pull Request #62979 · nodejs/node · GitHub

Open Graph Title: lib: refactor internal webidl converters by panva · Pull Request #62979 · nodejs/node

X Title: lib: refactor internal webidl converters by panva · Pull Request #62979 · nodejs/node

Description: Rework lib/internal/webidl.js into a documented shared converter module that follows the Web IDL conversion algorithms more closely. Improvements: Add documented converters and helper factories for primitive values, dictionaries, enums, sequences, interfaces, required arguments, integers, Uint8Array, and BufferSource. Move WebCrypto onto the shared converters, while keeping compatibility wrappers for its existing BufferSource and BigInteger behavior. Use shared converters from Blob, Performance, Web Locks, and structured clone option handling. Add benchmarks for ConvertToInt and WebCrypto Web IDL converter hot paths. Add focused tests for core converters, WebCrypto converters, integer conversion, and buffer source behavior. Fixes: Make the shared BufferSource and Uint8Array converters reject resizable ArrayBuffer and growable SharedArrayBuffer backing stores unless explicitly allowed. WebCrypto preserves its legacy resizable backing-store behavior through compatibility wrappers until a semver-major follow-up can opt in to the stricter behavior. Use Web IDL ToNumber and ToString behavior for BigInt, Symbol, and object primitive conversion. Use exact BigInt modulo for 64-bit ConvertToInt wrapping and document the final Number approximation behavior. Normalize mathematical modulo results to +0 where Web IDL requires it. Process inherited dictionaries in least-derived to most-derived order, sorting members only within each dictionary level. Use IteratorComplete truthiness for sequence conversion. Cover detached buffers, resizable-backed views, growable-backed views, cross-realm buffer sources, mutation-after-call behavior, inherited dictionary member order, and sequence iterator completion behavior. Benchmark(s) #62979 (comment) #62979 (comment)

Open Graph Description: Rework lib/internal/webidl.js into a documented shared converter module that follows the Web IDL conversion algorithms more closely. Improvements: Add documented converters and helper factories fo...

X Description: Rework lib/internal/webidl.js into a documented shared converter module that follows the Web IDL conversion algorithms more closely. Improvements: Add documented converters and helper factories fo...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d1456b78-3573-02b4-b6e9-eeede8d59f51
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBC56:320964:171515B:1F5360E:6A4C8A8D
html-safe-nonce6ca6c76a845ab1cb05332f548c72b32b46a258620225d0b7212456533c9fda96
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzU2OjMyMDk2NDoxNzE1MTVCOjFGNTM2MEU6NkE0QzhBOEQiLCJ2aXNpdG9yX2lkIjoiODAzNDIwOTkzNDk5NTEzMTAyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8b7bbf305602a747177ffb1f63d0f1b39c067698baa12c4f4bbdc882cd8169f0
hovercard-subject-tagpull_request:3586456173
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/pull/62979/files
twitter:imagehttps://avatars.githubusercontent.com/u/241506?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/241506?s=400&v=4
og:image:altRework lib/internal/webidl.js into a documented shared converter module that follows the Web IDL conversion algorithms more closely. Improvements: Add documented converters and helper factories fo...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7a2dede45637df6b92ddcfe2a557e67d4b5854ae
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/62979/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F62979%2Ffiles
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2F62979%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/62979/files
Reloadhttps://github.com/nodejs/node/pull/62979/files
Reloadhttps://github.com/nodejs/node/pull/62979/files
Please reload this pagehttps://github.com/nodejs/node/pull/62979/files
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/62979/files
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.4k https://github.com/nodejs/node/issues
Pull requests 964 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
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
nodejs-github-bothttps://github.com/nodejs-github-bot
nodejs:mainhttps://github.com/nodejs/node/tree/main
panva:webidl-passhttps://github.com/panva/node/tree/webidl-pass
Conversation 43 https://github.com/nodejs/node/pull/62979
Commits 2 https://github.com/nodejs/node/pull/62979/commits
Checks 71 https://github.com/nodejs/node/pull/62979/checks
Files changed https://github.com/nodejs/node/pull/62979/files
Please reload this pagehttps://github.com/nodejs/node/pull/62979/files
lib: refactor internal webidl converters https://github.com/nodejs/node/pull/62979/files#top
Show all changes 2 commits https://github.com/nodejs/node/pull/62979/files
713e897 lib: refactor internal webidl converters panva Apr 26, 2026 https://github.com/nodejs/node/pull/62979/commits/713e897701d4ae1f06dc3a4e24d72ac0f7eb9ad0
055016f fixup! lib: refactor internal webidl converters panva May 3, 2026 https://github.com/nodejs/node/pull/62979/commits/055016f953cc9807e6591507e3cdb4724566230a
Clear filters https://github.com/nodejs/node/pull/62979/files
Please reload this pagehttps://github.com/nodejs/node/pull/62979/files
Please reload this pagehttps://github.com/nodejs/node/pull/62979/files
webcrypto-webidl.js https://github.com/nodejs/node/pull/62979/files#diff-dc950fb9228d2e837ef0d9bef04d1cf5dd5772324ecf5e8ced94dbbd5c11abcb
webidl-convert-to-int.js https://github.com/nodejs/node/pull/62979/files#diff-c80d131e850c3a5dba75f73e6b138f994f0c978ff6f84a529551cac88bf585f2
blob.js https://github.com/nodejs/node/pull/62979/files#diff-143ced9347b4ca3c991dfa13428a1b29cde8d26ff904cd5ede44c760e2f93fc4
webidl.js https://github.com/nodejs/node/pull/62979/files#diff-800ad0ad975b0ac9a91466383c9a2d69ad2c07b4ec00664190523f44fdbaaa44
locks.js https://github.com/nodejs/node/pull/62979/files#diff-93449f67db6a581113b32306df634bd840b7793a736c2a2aef0a88a578e5e812
performance.js https://github.com/nodejs/node/pull/62979/files#diff-c96b1bb753576185337e7a9a861d025e03ae4d980d211003b215dc217780d83e
webidl.js https://github.com/nodejs/node/pull/62979/files#diff-7d8cbe9b51d25e617dd0d47fd5b2267bae18ac9da0457bdb13b45be4359e015c
js_transferable.js https://github.com/nodejs/node/pull/62979/files#diff-ef25e6956070fc02a4992c4636a758a485e2ea0fae55dc5ce59bc4acfe74f908
supports-modern-algorithms.mjs https://github.com/nodejs/node/pull/62979/files#diff-47d1b2bd324688a1f63deec91a4303b106dbff7a8772d4cab8e75d4eb7e7d05c
test-abortsignal-any.mjs https://github.com/nodejs/node/pull/62979/files#diff-dcbcf8caf8fed2f45f1efe2b9f7253f9a14534102bee1cc2ffc6344d1d3b89e5
test-blob.js https://github.com/nodejs/node/pull/62979/files#diff-a81904a70efeb82b159c0e582a8dd5fed7b683367407a220e78924d345488155
test-internal-webidl-buffer-source.js https://github.com/nodejs/node/pull/62979/files#diff-310d432fd180fe99d40b3732ad2f9b688933276bfa27acbc8b5b0548692aa074
test-internal-webidl-converttoint.js https://github.com/nodejs/node/pull/62979/files#diff-ac43a35cc6b386fce30c3c54afbfdbd91fcd6cd5a6a159953fe44493ea72d054
test-internal-webidl.js https://github.com/nodejs/node/pull/62979/files#diff-e77d545cc21e74a66f25030e45b6f0387dad7419d0c79e233eff95d5ea695d1e
test-performance-resourcetimingbuffersize.js https://github.com/nodejs/node/pull/62979/files#diff-6cb98e7e403fce4365d7a466c72480e8b0b52a59fed4bc52a890918b536936c4
test-structuredClone-global.js https://github.com/nodejs/node/pull/62979/files#diff-9df77f741a9cc847cd1b31ebdbf41fb8ba7102f5edb2cadc546ae65d0faad12b
test-webapi-sharedarraybuffer-rejection.js https://github.com/nodejs/node/pull/62979/files#diff-0ac35d9dd4b5379b38e1246fc6aa72a2b902599882b69389037a1e134e8e8405
test-webcrypto-webidl.js https://github.com/nodejs/node/pull/62979/files#diff-c02f6f836fffc70499adf1cb65a05075ba8b5140b6f097af800b8bd83facf442
benchmark/misc/webcrypto-webidl.jshttps://github.com/nodejs/node/pull/62979/files#diff-dc950fb9228d2e837ef0d9bef04d1cf5dd5772324ecf5e8ced94dbbd5c11abcb
View file https://github.com/panva/node/blob/055016f953cc9807e6591507e3cdb4724566230a/benchmark/misc/webcrypto-webidl.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/62979/{{ revealButtonHref }}
benchmark/misc/webidl-convert-to-int.jshttps://github.com/nodejs/node/pull/62979/files#diff-c80d131e850c3a5dba75f73e6b138f994f0c978ff6f84a529551cac88bf585f2
View file https://github.com/panva/node/blob/055016f953cc9807e6591507e3cdb4724566230a/benchmark/misc/webidl-convert-to-int.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/62979/{{ revealButtonHref }}
lib/internal/blob.jshttps://github.com/nodejs/node/pull/62979/files#diff-143ced9347b4ca3c991dfa13428a1b29cde8d26ff904cd5ede44c760e2f93fc4
View file https://github.com/panva/node/blob/055016f953cc9807e6591507e3cdb4724566230a/lib/internal/blob.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/62979/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/62979/files#diff-143ced9347b4ca3c991dfa13428a1b29cde8d26ff904cd5ede44c760e2f93fc4
https://github.com/nodejs/node/pull/62979/files#diff-143ced9347b4ca3c991dfa13428a1b29cde8d26ff904cd5ede44c760e2f93fc4
https://github.com/nodejs/node/pull/62979/files#diff-143ced9347b4ca3c991dfa13428a1b29cde8d26ff904cd5ede44c760e2f93fc4
https://github.com/nodejs/node/pull/62979/files#diff-143ced9347b4ca3c991dfa13428a1b29cde8d26ff904cd5ede44c760e2f93fc4
Please reload this pagehttps://github.com/nodejs/node/pull/62979/files
Please reload this pagehttps://github.com/nodejs/node/pull/62979/files
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.