Hi Dražen,
A set of changes I pushed to the Emacs master branch 2 months ago should
resolve this issue. (First fixed in 4b305bb185, but there were several
commits after that when I broke/fixed it again. The master branch is
your best bet.)
Note that if you’re currently using js2-mode, you’ll have to use js-mode
instead. The fix is not currently available for JS2, except with
js2-minor-mode.
Jackson