ClojureScript

Using */ inside of a docstring causes compiler to produce invalid JavaScript

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 0.0-3269
  • Fix Version/s: Next
  • Component/s: None
  • Labels:
    None
  • Environment:
    Linux, lein-cljsbuild

Description

Due to how function docstrings are output by the ClojureScript compiler, the use of

*/
within a docstring causes the compiler to produce invalid JavaScript, breaking compilation, since '*/' will close the docstring's JavaScript comment block and the remaining docstring text will be uncommented as a result.

Activity

David Nolen made changes -
Field Original Value New Value
Description Due to how function docstrings are output by the ClojureScript compiler, the use of '*/' within a docstring causes the compiler to produce invalid JavaScript, breaking compilation, since '*/' will close the docstring's JavaScript comment block and the remaining docstring text will be uncommented as a result. Due to how function docstrings are output by the ClojureScript compiler, the use of {code}*/{code} within a docstring causes the compiler to produce invalid JavaScript, breaking compilation, since '*/' will close the docstring's JavaScript comment block and the remaining docstring text will be uncommented as a result.
Priority Major [ 3 ] Minor [ 4 ]
David Nolen made changes -
Description Due to how function docstrings are output by the ClojureScript compiler, the use of {code}*/{code} within a docstring causes the compiler to produce invalid JavaScript, breaking compilation, since '*/' will close the docstring's JavaScript comment block and the remaining docstring text will be uncommented as a result. Due to how function docstrings are output by the ClojureScript compiler, the use of <pre>*/</pre> within a docstring causes the compiler to produce invalid JavaScript, breaking compilation, since '*/' will close the docstring's JavaScript comment block and the remaining docstring text will be uncommented as a result.
David Nolen made changes -
Description Due to how function docstrings are output by the ClojureScript compiler, the use of <pre>*/</pre> within a docstring causes the compiler to produce invalid JavaScript, breaking compilation, since '*/' will close the docstring's JavaScript comment block and the remaining docstring text will be uncommented as a result. Due to how function docstrings are output by the ClojureScript compiler, the use of {noformat}*/{noformat} within a docstring causes the compiler to produce invalid JavaScript, breaking compilation, since '*/' will close the docstring's JavaScript comment block and the remaining docstring text will be uncommented as a result.
David Nolen made changes -
Affects Version/s 0.0-3115 [ 10352 ]
Fix Version/s Next [ 10355 ]
David Nolen made changes -
Fix Version/s Next [ 10355 ]
Fix Version/s Backlog [ 10356 ]
Affects Version/s 0.0-3115 [ 10352 ]
Affects Version/s Next [ 10355 ]
David Nolen made changes -
Fix Version/s Next [ 10356 ]
Fix Version/s Backlog [ 10362 ]
David Nolen made changes -
Fix Version/s Next [ 10362 ]
Fix Version/s Backlog [ 10363 ]
Affects Version/s 0.0-3196 [ 10355 ]
Affects Version/s Next [ 10362 ]
David Nolen made changes -
Fix Version/s Next [ 10363 ]
Fix Version/s Backlog [ 10365 ]
Affects Version/s 0.0-3255 [ 10362 ]
Affects Version/s Next [ 10363 ]
Sebastian Bensusan made changes -
Attachment cljs_428.patch [ 14168 ]

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated: