codemirror / codemirror5

In-browser code editor (version 5, legacy)
http://codemirror.net/5/
MIT License
26.84k stars 4.97k forks source link

missing semicolon in codemirror js ver 5.5.0 #7062

Closed floss-51nullacht closed 1 year ago

floss-51nullacht commented 1 year ago

Hi, in https://github.com/codemirror/codemirror5/blob/53faa33ac69598b7495e160824b58ebb8d70fe97/src/util/misc.js#L124 is written var nonASCIISingleCaseWordChar = [...]ud7af]/ without a trailing semicolon and followed by a function.

In a minified version ist becomes ... ]/function ... wich ends in an error. Best

marijnh commented 1 year ago

In a minified version ist becomes ... ]/function ... wich ends in an error.

Only if the minifier is broken. If the file we distribute runs, I don't consider this an issue in CodeMirror.