Title: Node.js 27 regression: repl implicitly awaits Promise objects · Issue #67619 · nodejs/node · GitHub
Open Graph Title: Node.js 27 regression: repl implicitly awaits Promise objects · Issue #67619 · nodejs/node
X Title: Node.js 27 regression: repl implicitly awaits Promise objects · Issue #67619 · nodejs/node
Description: Version v27.0.0-alpha.0.1.1 Platform Subsystem repl What steps will reproduce the bug? In the node repl: > await 2 2 > Promise.resolve(2) 2 > await 1; Promise.resolve(2); 2 > new Promise(() => {}) How often does it reproduce? Is there a ...
Open Graph Description: Version v27.0.0-alpha.0.1.1 Platform Subsystem repl What steps will reproduce the bug? In the node repl: > await 2 2 > Promise.resolve(2) 2 > await 1; Promise.resolve(2); 2 > new Promise(() => {}) ...
X Description: Version v27.0.0-alpha.0.1.1 Platform Subsystem repl What steps will reproduce the bug? In the node repl: > await 2 2 > Promise.resolve(2) 2 > await 1; Promise.resolve(2); 2 > new Promis...
Opengraph URL: https://github.com/nodejs/node/issues/67619
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Node.js 27 regression: repl implicitly awaits Promise objects","articleBody":"### Version\n\nv27.0.0-alpha.0.1.1\n\n### Platform\n\n```text\n\n```\n\n### Subsystem\n\nrepl\n\n### What steps will reproduce the bug?\n\nIn the `node` repl:\n```\n> await 2\n2\n> Promise.resolve(2)\n2\n> await 1; Promise.resolve(2);\n2\n> new Promise(() => {})\n```\n\n### How often does it reproduce? Is there a required condition?\n\nalways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThose four lines should log respectively `2`, `Promise { 2 }`, `Promise { 2 }`, and `Promise { \u003cpending> }`, since it's what their contents complete to (potentially asynchronously).\n\nThat is how it works in Node.js 26, and how it works in Chrome devtools (and how it _should_ work in Firefox devtools, see https://bugzilla.mozilla.org/show_bug.cgi?id=1918327).\n\n### What do you see instead?\n\nWhenever a line completes with a promise, Node.js 27 implicitly awaits it. It always prints the _contents_ of the promise rather than the promise itself, and for cases like `new Promise(() => {})` it just hangs forever.\n\n### Additional information\n\nThis bug was also reported years ago (https://github.com/nodejs/node/issues/43777) and it was fixed in Node.js 19 (https://github.com/nodejs/node/pull/43827), but now it's back.\n\nI believe it's caused by https://github.com/nodejs/node/pull/64034. That PR deleted the tests introduced by https://github.com/nodejs/node/pull/43827 (in `parallel/test-repl-top-level-await.js`), claiming \"No need to test TLA — it's supported natively by the inspector\".","author":{"url":"https://github.com/nicolo-ribaudo","@type":"Person","name":"nicolo-ribaudo"},"datePublished":"2026-11-19T15:14:02Z","url":"https://github.com/nodejs/node/issues/67619"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1042afe0-5c51-66bb-6f6b-fdbfa527afd2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DAA:3CBF9:3EF573:51CA7C:6B06199E |
| html-safe-nonce | 6260761ceee0a520748e89d7c2f78a050fb0d22a1470f5c98ff966d22c507d5c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REFBOjNDQkY5OjNFRjU3Mzo1MUNBN0M6NkIwNjE5OUUiLCJ2aXNpdG9yX2lkIjoiMTUwMTU4NTcwNTk1MTE3MzAyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b55540c7d3424444347674d9d156260573fc47470620f3694061ac4ea0922019 |
| hovercard-subject-tag | issue:6492722738 |
| 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/67619/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1c4eb7060ea1e5ac39e3d7e6e549c049452173043fa44e9722d029ee970a6824/nodejs/node/issues/67619 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1c4eb7060ea1e5ac39e3d7e6e549c049452173043fa44e9722d029ee970a6824/nodejs/node/issues/67619 |
| og:image:alt | Version v27.0.0-alpha.0.1.1 Platform Subsystem repl What steps will reproduce the bug? In the node repl: > await 2 2 > Promise.resolve(2) 2 > await 1; Promise.resolve(2); 2 > new Promise(() => {}) ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nicolo-ribaudo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| 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 | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width