MZ "Invalid left-hand side expression..." error.

Any ideas about the cause? I was setting up some battle core notetags for states, and then it appeared. The worst part is that I didn't checked game after every change, so I don't really have a clue what that's about.
RPGMZ_J17Mx40e2H.png
I was setting up some battle core notetags for states, and then it appeared
you know the probable cause then. check your added states for possible mistakes

the error says theres an invalid left side expression, its coming from the method to parse state removal effects, so one of your states has some invalid left side syntax you missed in its removal effect
There's also the error above it, unexpected token, which indicates a typo in JavaScript code.
and lastly, the FILENAME of the first error indicates that you downloaded that plugin twice, with windows automatically adding a (1) to the end of the second download.
But plugins should never be renamed as they may break functions if they are renamed, so please correct the filename and make sure if you ever download something twice to use the first download and never the renamed downloads.
Ok guys I figured that out. Turned out "---" in notetags I used to separate functions breaks the game lmao, won't do it anymore
  1. <JS On Add State>
    $gameSwitches.setValue(80, false);
    $gameTemp.reserveCommonEvent(313);
    ---
    user.removeState(349)
    user.removeState(350)
    user.removeState(352)
    </JS On Add State>
Turned out "---" in notetags I used to separate functions breaks the game
javascript comments need to start with //
that will tell the engine to ignore everything in the same line after the //

Original thread: https://forums.rpgmakerweb.com/threads/invalid-left-hand-side-expression-error.164698/