When using js-mode (or js2-mode) on Emacs 25.1 (in Debian 9) to edit some large files, any attempt to insert text after some "random" point in the file fails with an elisp stack trace:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
looking-at(nil)
c-state-semi-safe-place(269817)
c-literal-limits(nil nil t)
c-context-line-break()
funcall-interactively(c-context-line-break)
call-interactively(c-context-line-break nil nil)
command-execute(c-context-line-break)
Why and how can it be fixed?