GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — CLI --eval rejects valid trailing line comments when input contains crypto · Issue #67159 · nodejs/node Closed Closed Copy link Labels cliIssues and PRs related to the Node.js command-line interface. DescriptionNode.js version and platformNode.js v26.12.1, macOS arm64. Reproduced with the Node executable directly; no packages or application setup are needed. ReproductionRun: node -e 'crypto; // comment'The command exits with status 1. It reports this generated source and error: The same failure occurs with node -e 'crypto;' node -e 'crypto; /* comment */' Adding a newline after the line comment also succeeds. Expected behaviorThe original command should exit successfully. Its input is valid JavaScript; the trailing line comment should not consume code inserted by the CLI. This affects command generators or scripts that append a line comment to an otherwise valid Source evidenceIn eval_string.js at v26.12.1, the crypto compatibility branch inserts the input into a wrapper without a newline before the closing syntax. The error above shows that closing syntax on the commented line. This is a standalone CLI reproduction, not a production-incident claim. Activity
MetadataMetadataAssigneesLabelscliIssues and PRs related to the Node.js command-line interface. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |