3 ms·
People literally toString functions and parse them to implement features. Those features depend on there being comment text in the function that they parse. Pre
by spullara 11y ago
People literally toString functions and parse them to implement features. Those features depend on there being comment text in the function that they parse. Pretty much a terrible hack but it is true that you can't remove the comments without breaking current code.
- alkonaut 11y agoWow. That's just something that should be an obvious fix in a future ES. Not only does it hurt the optimizer, it also seems to imply that the content of comments sometimes has semantic meaning in the code, such as people having invented directives etc. Surely this must be undocumented features of the language spec?