This looks like raw ANSI escape sequences that the terminal didn't process but instead displayed as plain text. It seems the problem isn't with parsing the input, but rather that the new qjs has started outputting VT/ANSI codes for line editing and highlighting, and the console doesn't understand them.
You can check this by running it through an ANSI-compatible terminal or shell: the old ConEmu, ANSICON, mintty, Cygwin, or MSYS.