Re: [BUG] ob-js "SyntaxError: Unexpected end of input" when code block ends with comment

2023-04-17 Thread General discussions about Org-mode.
Happy to help and thanks for fixing it so quickly:) Best regards, -- Salah  Apr 17, 2023 at 12:10 by yanta...@posteo.net: > sgherdao--- via "General discussions about Org-mode." > writes: > >> The following code snippet fails to execute >> >> #+begin_src js >> console.log("Hello Friends!");

Re: [BUG] ob-js "SyntaxError: Unexpected end of input" when code block ends with comment

2023-04-17 Thread Ihor Radchenko
sgherdao--- via "General discussions about Org-mode." writes: > The following code snippet fails to execute > > #+begin_src js > console.log("Hello Friends!"); > // -> logs "Hello Friends" > #+end_src > > I encounter the following error message: > > #+begin_src text > /tmp/js-script-dn2Wrp:2 >

[BUG] ob-js "SyntaxError: Unexpected end of input" when code block ends with comment

2023-04-17 Thread General discussions about Org-mode.
Hello, I would like to report a bug, I am using the following versions GNU Emacs 28.2 Org mode version 9.6.1 Node v19.9.0 The following code snippet fails to execute #+begin_src js console.log("Hello Friends!"); // -> logs "Hello Friends" #+end_src I encounter the following error message: