eval-in-repl
eval-in-repl copied to clipboard
js-comint `wrong-number-of-arguments` error
Hello,
The error is occurring part way through the code submitted. It's a JS function, and the first line that appears in the backtrace is the fifth line of the code itself. I plugged the code into node by hand to confirm it is correct, nothing hinky there. The code is being run in an org-mode source block.
Debugger entered--Lisp error: (wrong-number-of-arguments #<subr js-comint-start-or-switch-to-repl> 1) switch-to-js(t)
#f(compiled-function () #<bytecode 0x1e820db659a472>)() eir-send-to-repl(#f(compiled-function () #<bytecode
0x1e820db659a472>)
comint-send-input " const codeEnd = Math.ceil(Math.random()*factor);")
apply(eir-send-to-repl (#f(compiled-function () #<bytecode 0x1e820db659a472>) comint-send-input " const codeEnd =
Math.ceil(Math.random()*factor);")) eir-send-to-javascript(" const codeEnd = Math.ceil(Math.random()*factor);")
eir-eval-in-javascript() ober-eval-in-repl()
funcall-interactively(ober-eval-in-repl)
command-execute(ober-eval-in-repl)
GNU Emacs 29.0.50 (build 1, x86_64-w64-mingw32) of 2021-10-12 org-mode version 9.5 Windows 10 Pro