emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug: Error in org-babel due to adding comments at the end in js code


From: Compro Prasad
Subject: [O] Bug: Error in org-babel due to adding comments at the end in js codeblock
Date: Sun, 20 Nov 2016 20:53:42 +0530

#+BEGIN_SRC js
var school = { schoolName: "MIT" }
console.log(school.hasOwnProperty("schoolName")) // true
#+END_SRC
The execution of the above codeblock produces error because of the
comment at the end.

I realised it when I opened the temporary file org-babel was using to
execute the code. The temporary file had the following js code:

require('sys').print(require('sys').inspect(function(){var school = { schoolName: "MIT" }
console.log(school.hasOwnProperty("schoolName")) // true}()));

And there were no errors for sure when I removed the comment.

Hope the bug gets fixed.


Emacs  : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-04-25 on lgw01-10, modified by Debian
Package: Org mode version 9.0.1 (9.0.1-elpa @ /home/compro/.emacs.d/elpa/org-20161118/)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]