[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: Error in org-babel due to adding comments at the end in js
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Bug: Error in org-babel due to adding comments at the end in js codeblock |
Date: |
Mon, 21 Nov 2016 23:29:46 +0100 |
Hello,
Compro Prasad <address@hidden> writes:
> #+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.
Fixed, hopefully. Thank you.
Regards,
--
Nicolas Goaziou