Repro:
- C-x b RET (open *scratch*)
- M-x js-mode RET
- Go to the first line and insert
//
- Go to the second line and insert
//
At this point, Flymake should report no issues, but it reports an unclosed regexp literal error.
- On a new line, type
documents
- Hover the mouse cursor over the word 'documents' and observe:
