Title: --allow-natives-syntax --test not propagating natives syntax support to child processes · Issue #60986 · nodejs/node · GitHub
Open Graph Title: --allow-natives-syntax --test not propagating natives syntax support to child processes · Issue #60986 · nodejs/node
X Title: --allow-natives-syntax --test not propagating natives syntax support to child processes · Issue #60986 · nodejs/node
Description: Version v24.11.1 Platform Darwin MacBook-Pro 23.6.0 Darwin Kernel Version 23.6.0: Wed May 14 13:51:39 PDT 2025; root:xnu-10063.141.1.705.2~2/RELEASE_ARM64_T6020 arm64 Subsystem test runner What steps will reproduce the bug? This worked i...
Open Graph Description: Version v24.11.1 Platform Darwin MacBook-Pro 23.6.0 Darwin Kernel Version 23.6.0: Wed May 14 13:51:39 PDT 2025; root:xnu-10063.141.1.705.2~2/RELEASE_ARM64_T6020 arm64 Subsystem test runner What ste...
X Description: Version v24.11.1 Platform Darwin MacBook-Pro 23.6.0 Darwin Kernel Version 23.6.0: Wed May 14 13:51:39 PDT 2025; root:xnu-10063.141.1.705.2~2/RELEASE_ARM64_T6020 arm64 Subsystem test runner What ste...
Opengraph URL: https://github.com/nodejs/node/issues/60986
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"--allow-natives-syntax --test not propagating natives syntax support to child processes","articleBody":"### Version\n\nv24.11.1\n\n### Platform\n\n```text\nDarwin MacBook-Pro 23.6.0 Darwin Kernel Version 23.6.0: Wed May 14 13:51:39 PDT 2025; root:xnu-10063.141.1.705.2~2/RELEASE_ARM64_T6020 arm64\n```\n\n### Subsystem\n\ntest runner\n\n### What steps will reproduce the bug?\n\nThis worked in Node 24.6.0, fails in anything later\n\nI'm trying to write some integration tests for code that uses the bench-node library, and all of the tests run fine in node 22, but in node 24 they are getting errors, \n\n\u003e bench-node module must be run with --allow-natives-syntax argument\n\nI believe this is due to the test runner not running the tests with the same configuration the parent process was handed.\n\nAnd since it's not legal to add the natives syntax as a NODE_OPTIONS flag, I have no workaround for this at present.\n\n(You don't actually document how to run the tests without child processes from the CLI, only from a direct run() call)\n\n### How often does it reproduce? Is there a required condition?\n\ndownload bench-node and try to run its tests with node 24.6.0, node 24.11.1\n\nnode --test --allow-natives-syntax --expose-gc\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe tests should run fine.\n\n### What do you see instead?\n\n```\ntest at test/basic.js:194:1\n✖ simple usage (0.032667ms)\n Error: bench-node module must be run with --allow-natives-syntax argument\n at throwIfNoNativesSyntax (/Users/jasonmarshall/Projects/cobbler/bench-node/lib/index.js:96:9)\n at Suite.run (/Users/jasonmarshall/Projects/cobbler/bench-node/lib/index.js:198:3)\n at SuiteContext.\u003canonymous\u003e (/Users/jasonmarshall/Projects/cobbler/bench-node/test/basic.js:204:39)\n at Suite.runInAsyncScope (node:async_hooks:214:14)\n at Suite.createBuild (node:internal/test_runner/test:1476:13)\n at new Suite (node:internal/test_runner/test:1467:28)\n at Test.createSubtest (node:internal/test_runner/test:865:18)\n at run (node:internal/test_runner/harness:364:28)\n at test (node:internal/test_runner/harness:378:12)\n at Object.\u003canonymous\u003e (/Users/jasonmarshall/Projects/cobbler/bench-node/test/basic.js:194:1)\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/jdmarshall","@type":"Person","name":"jdmarshall"},"datePublished":"2025-12-08T07:37:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/60986/node/issues/60986"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f302d871-79bd-775d-41cd-6be18a3fcd47 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E04:CFFC3:2BD95B3:3E9BC52:6A4BFE71 |
| html-safe-nonce | 8b6f0b8f0bc0a1ec985732eddaa355768ac8e06449577888b12f3d802f2f6efe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTA0OkNGRkMzOjJCRDk1QjM6M0U5QkM1Mjo2QTRCRkU3MSIsInZpc2l0b3JfaWQiOiI3MDQzODQzNjY0MjgyOTA2NzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4d9b9c7145bad1b29ea693b34a674107f6331c36ffab097ae9df8a91dcec8df1 |
| hovercard-subject-tag | issue:3705048831 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/60986/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7ecbe1b3c466627c93c45c4cd3a8daf0e29095fe9e521aa31016f9783a379000/nodejs/node/issues/60986 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7ecbe1b3c466627c93c45c4cd3a8daf0e29095fe9e521aa31016f9783a379000/nodejs/node/issues/60986 |
| og:image:alt | Version v24.11.1 Platform Darwin MacBook-Pro 23.6.0 Darwin Kernel Version 23.6.0: Wed May 14 13:51:39 PDT 2025; root:xnu-10063.141.1.705.2~2/RELEASE_ARM64_T6020 arm64 Subsystem test runner What ste... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jdmarshall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0f5d3ba365b3985d75c32a5957c8635488d58dcf027ae6ae958eee7edaa306a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6c542436f9c7282f518e9ec7bc5a3adff20a13fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width