Repository: neovim
Issue: occasionally crashes when writing javascript code
Labels: needs:repro,bug-crash

### Neovim version (nvim -v)

NVIM v0.8.0 Build type: Release LuaJIT 2.1.0-beta3

### Vim (not Nvim) behaves the same?

Unable to verify

### Operating system/version

gentoo linux

### Terminal name/version

rxvt-unicode (urxvt) v9.30 - released: 2021-11-27

### $TERM environment variable

rxvt-unicode-256color

### Installation

system package manager

### How to reproduce the issue

It is unclear how to reproduce this problem. After using neovim to input code for a period of time, it will directly crash

### Expected behavior

-

### Actual behavior

```
journalctl
Oct 21 12:11:52 potato kernel: nvim[21776]: segfault at aeb73870 ip 00007f6c8e11de5e sp 00007fff934eb0d0 error 4
Oct 21 12:11:52 potato kernel: Code: 24 a0 00 00 00 33 f6 e8 5f 9e 38 22 92 4c 8b 9c 24 a8 00 00 00 49 8b be f0 f1 ff ff 49 8d b6 08 d5 fe ff 49 8d 8e b8 a5 fe ff <c4> 63 fb>
Oct 21 12:11:52 potato systemd[1]: Started Process Core Dump (PID 38000/UID 0).
Oct 21 12:11:52 potato systemd-coredump[38001]: [🡕] Process 21776 (nvim) of user 1000 dumped core.
                                                
                                                Module /home/user1/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/javascript.so without build-id.
                                                Module linux-vdso.so.1 with build-id d419ffd788a2e3f159f698df9b1cf549f81d0771
                                                Module libstdc++.so.6 without build-id.
                                                Module libgcc_s.so.1 without build-id.
                                                Module ld-linux-x86-64.so.2 without build-id.
                                                Module libc.so.6 without build-id.
                                                Module libluajit-5.1.so.2 without build-id.
                                                Module libm.so.6 without build-id.
                                                Module libtree-sitter.so.0 without build-id.
                                                Module libunibilium.so.4 without build-id.
                                                Module libtermkey.so.1 without build-id.
                                                Module libvterm.so.0 without build-id.
                                                Module libmsgpackc.so.2 without build-id.
                                                Module libuv.so.1 without build-id.
                                                Module libluv.so.1 without build-id.
                                                Module nvim without build-id.
                                                Stack trace of thread 21776:
                                                #0  0x00007f6c8e11de5e n/a (n/a + 0x0)
                                                ELF object binary architecture: AMD x86-64
Oct 21 12:11:52 potato systemd[1]: systemd-coredump@1-38000-0.service: Deactivated successfully.
Oct 21 12:11:52 potato nvim-qt[21771]: Neovim fatal error "The Neovim process has crashed"
```