Title: repl: SyntaxError thrown when entering bigint literal inside multi-line input · Issue #31919 · nodejs/node · GitHub
Open Graph Title: repl: SyntaxError thrown when entering bigint literal inside multi-line input · Issue #31919 · nodejs/node
X Title: repl: SyntaxError thrown when entering bigint literal inside multi-line input · Issue #31919 · nodejs/node
Description: Version: v10.x Platform: all Subsystem: repl What steps will reproduce the bug? $ node > function foo() { ... let n = 10n; Thrown: let n = 10n; ^ SyntaxError: Unexpected end of input > How often does it reproduce? Is there a required con...
Open Graph Description: Version: v10.x Platform: all Subsystem: repl What steps will reproduce the bug? $ node > function foo() { ... let n = 10n; Thrown: let n = 10n; ^ SyntaxError: Unexpected end of input > How often do...
X Description: Version: v10.x Platform: all Subsystem: repl What steps will reproduce the bug? $ node > function foo() { ... let n = 10n; Thrown: let n = 10n; ^ SyntaxError: Unexpected end of input > How of...
Opengraph URL: https://github.com/nodejs/node/issues/31919
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"repl: SyntaxError thrown when entering bigint literal inside multi-line input","articleBody":"* **Version**: v10.x\r\n* **Platform**: all\r\n* **Subsystem**: repl\r\n\r\n### What steps will reproduce the bug?\r\n\r\n```\r\n$ node\r\n\u003e function foo() {\r\n... let n = 10n;\r\nThrown:\r\nlet n = 10n;\r\n ^\r\n\r\nSyntaxError: Unexpected end of input\r\n\u003e\r\n```\r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\nReproduces all the time.\r\n\r\n### What is the expected behavior?\r\n\r\nShould not cause an exception.\r\n\r\n### What do you see instead?\r\n\r\nAn exception.\r\n\r\n### Additional information\r\n\r\nWorks on master. Works when run from a script instead of the repl.","author":{"url":"https://github.com/mscdex","@type":"Person","name":"mscdex"},"datePublished":"2020-02-22T23:24:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/31919/node/issues/31919"}
| 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:174e68de-9cc6-d050-193b-4b65e32cea4c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC34:129DF4:6B3E04:9CF8C0:6A4E1283 |
| html-safe-nonce | dd795425681be6ee736d52de121d17046e9ed3d1ed1dee023b4919d70b2bb4e6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzM0OjEyOURGNDo2QjNFMDQ6OUNGOEMwOjZBNEUxMjgzIiwidmlzaXRvcl9pZCI6IjM0ODE5NTY0ODQzMDM5NTA0NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b658d62ff13c927faf70ee0b89571cd50b519cdb75b046104c4d94ba93b33ce4 |
| hovercard-subject-tag | issue:569407960 |
| 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/31919/issue_layout |
| twitter:image | https://opengraph.githubassets.com/192e7f23d54a97555afd2c98c8749922efc473fd0c21827fc0ee33ecc6c02529/nodejs/node/issues/31919 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/192e7f23d54a97555afd2c98c8749922efc473fd0c21827fc0ee33ecc6c02529/nodejs/node/issues/31919 |
| og:image:alt | Version: v10.x Platform: all Subsystem: repl What steps will reproduce the bug? $ node > function foo() { ... let n = 10n; Thrown: let n = 10n; ^ SyntaxError: Unexpected end of input > How often do... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mscdex |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | ea9187571e3edc5f2780f750631138669441ca50 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width