#+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/)