Removal of comments in version 1.43.3 #23814
Unanswered
AnnaMatlapudi
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
It appears this is only happening in the REPL or if you use TypeScript. IIRC @dsherret did a change that removes all comments during transpilation some time ago, but I'm not 100% sure. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Does anyone know what is happening here with new version (1.43.3) when a function code is displayed with
toString(), comments are removed. Whereas until previous version (1.42.2) comments are retained (which is the case with node(js) runtime also).Is there a change in default configuration causing this? if so, what are my options to switch back to behavior of keeping comments? Please help
Test Code:
Output from
deno 1.43.3(release, x86_64-unknown-linux-gnu) ,v8 12.4.254.13andtypescript 5.4.5Output from
deno 1.42.2(release, x86_64-unknown-linux-gnu) ,v8 12.3.219.9andtypescript 5.4.3Output from
node v21.5.0Beta Was this translation helpful? Give feedback.
All reactions