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: None
  • Fix Version/s: None
  • 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.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: