René's URL Explorer Experiment


Title: Important change of behaviour starting with Node.js v26.4.0 impacting async work in native modules · Issue #1756 · nodejs/node-addon-api · GitHub

Open Graph Title: Important change of behaviour starting with Node.js v26.4.0 impacting async work in native modules · Issue #1756 · nodejs/node-addon-api

X Title: Important change of behaviour starting with Node.js v26.4.0 impacting async work in native modules · Issue #1756 · nodejs/node-addon-api

Description: Starting from Node.js v26.4.0 native modules are expected to call the micro tasks queue and process.nextTick handlers themselves if they do any async work. Node.js exports a RAII guard, CallbackScope, that does automatically at the end o...

Open Graph Description: Starting from Node.js v26.4.0 native modules are expected to call the micro tasks queue and process.nextTick handlers themselves if they do any async work. Node.js exports a RAII guard, CallbackSco...

X Description: Starting from Node.js v26.4.0 native modules are expected to call the micro tasks queue and process.nextTick handlers themselves if they do any async work. Node.js exports a RAII guard, CallbackSco...

Opengraph URL: https://github.com/nodejs/node-addon-api/issues/1756

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Important change of behaviour starting with Node.js v26.4.0 impacting async work in native modules","articleBody":"Starting from Node.js v26.4.0 native modules are expected to call the micro tasks queue and `process.nextTick` handlers themselves if they do any async work.\n\nNode.js exports a RAII guard, `CallbackScope`, that does automatically at the end of the functions that create it.\n\nThe module is supposed to be doing this on the main thread after the async work has been completed.\n\nOr, alternatively, there is the `makeCallback` method which combines a `CallbackScope` with a `Call` method - it is a shorthand for calling into JavaScript _and_ running the micro tasks.\n\nIt appears that this has been specified to work this way since Node.js v9.0.0 but until now Node.js would always process the handlers in all cases. Starting with Node.js v26.4.0, this is no longer the case.\n\nI have first encountered the problem with NAN and I haven't reproduced it with `node-addon-api`, but I see that this fully applies to it too.\n\nNote that Node.js still calls the micro tasks _most of the time_ except in some cases, which makes debugging this problem rather unpleasant.\n\n* The default `OnOK``AsyncWorker` uses `Call` instead of `makeCallback`\n* There is an `AsyncResource` class but this class is not used at all by `AsyncWorker` - it is up to the module to create it\n* This is also true when using the `Promise` helpers - they do not call the micro tasks either\n\nUnlike NAN, `node-addon-api` exports all necessary APIs, however it is currently somewhat misleading and definitely does not make it clear that this is something that is up to the module (especially since until Node.js v26.4.0 it was not).\n\nI think that by default the `AsyncWorker` class should create an `AsyncContext` that must be accessible to derived classes (`protected`) and the `OnOK`/`OnError` methods should use `makeCallback` with this async context. When using a `Promise` - or when overriding `OnOK`/`OnError`, there should be a mention in the documentation that the module must use a `CallbackScope`.\n\nFurther info:\nhttps://github.com/nodejs/nan/issues/1024\nhttps://github.com/nodejs/node/issues/66158","author":{"url":"https://github.com/mmomtchev","@type":"Person","name":"mmomtchev"},"datePublished":"2026-09-26T16:08:02Z","url":"https://github.com/nodejs/node-addon-api/issues/1756"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6d8c20e9-084e-91cd-1c3b-3305eac23903
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8DCA:2C6577:A2EFB3:D965BC:6B063ED9
html-safe-nonceae0ad39273f11ee744a2b4250e53e4eadc2d5e85a93ee923c4971f81388c3a4b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RENBOjJDNjU3NzpBMkVGQjM6RDk2NUJDOjZCMDYzRUQ5IiwidmlzaXRvcl9pZCI6IjIyNDk3NDg0ODc1NjA2NDIyNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacca17f12aa54c0b57d02f9176e402174e089e9fb6a6835526f6f4a38cfc0df6f1
hovercard-subject-tagissue:5595373733
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node-addon-api/1756/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c5334af865dd935fe95df45865d7376d7aba496d43c3d05fb10336d2bbbda159/nodejs/node-addon-api/issues/1756
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c5334af865dd935fe95df45865d7376d7aba496d43c3d05fb10336d2bbbda159/nodejs/node-addon-api/issues/1756
og:image:altStarting from Node.js v26.4.0 native modules are expected to call the micro tasks queue and process.nextTick handlers themselves if they do any async work. Node.js exports a RAII guard, CallbackSco...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemmomtchev
hostnamegithub.com
expected-hostnamegithub.com
Nonedcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node-addon-api git https://github.com/nodejs/node-addon-api.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id81384578
octolytics-dimension-repository_nwonodejs/node-addon-api
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81384578
octolytics-dimension-repository_network_root_nwonodejs/node-addon-api
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
release0f38f5735226749ec5e08a8649dce4cb2613d9ad
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node-addon-api/issues/1756#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode-addon-api%2Fissues%2F1756
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode-addon-api%2Fissues%2F1756
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode-addon-api
Reloadhttps://github.com/nodejs/node-addon-api/issues/1756
Reloadhttps://github.com/nodejs/node-addon-api/issues/1756
Reloadhttps://github.com/nodejs/node-addon-api/issues/1756
nodejshttps://github.com/nodejs
node-addon-apihttps://github.com/nodejs/node-addon-api
Codehttps://github.com/nodejs/node-addon-api
Issues12 (12)https://github.com/nodejs/node-addon-api/issues
Pull requests8 (8)https://github.com/nodejs/node-addon-api/pulls
Actionshttps://github.com/nodejs/node-addon-api/actions
Projectshttps://github.com/nodejs/node-addon-api/projects
Wikihttps://github.com/nodejs/node-addon-api/wiki
Security and qualityhttps://github.com/nodejs/node-addon-api/security
Insightshttps://github.com/nodejs/node-addon-api/insights
https://github.com/nodejs/node-addon-api
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node-addon-api/issues/1756
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node-addon-api/issues/1756
#1764https://github.com/nodejs/node-addon-api/pull/1764
Important change of behaviour starting with Node.js v26.4.0 impacting async work in native moduleshttps://github.com/nodejs/node-addon-api/issues/1756#top
#1764https://github.com/nodejs/node-addon-api/pull/1764
https://github.com/mmomtchev
mmomtchevhttps://github.com/mmomtchev
on Sep 26, 2026https://github.com/nodejs/node-addon-api/issues/1756#issue-5595373733
nodejs/nan#1024https://github.com/nodejs/nan/issues/1024
nodejs/node#66158https://github.com/nodejs/node/issues/66158
github-project-automationhttps://github.com/apps/github-project-automation
Node-API Team Projecthttps://github.com/orgs/nodejs/projects/11
on Sep 26, 2026https://github.com/nodejs/node-addon-api/issues/1756#event-31900657797
github-project-automationhttps://github.com/apps/github-project-automation
Node-API Team Projecthttps://github.com/orgs/nodejs/projects/11
on Sep 26, 2026https://github.com/nodejs/node-addon-api/issues/1756
https://github.com/dave-365
dave-365https://github.com/dave-365
on Nov 11, 2026https://github.com/nodejs/node-addon-api/issues/1756#issuecomment-6801154014
#1764https://github.com/nodejs/node-addon-api/pull/1764
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node-addon-api/issues/1756
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node-addon-api/issues/1756
Node-API Team Projecthttps://github.com/orgs/nodejs/projects/11
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.