From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Error in org-babel due to adding comments at the end in js codeblock Date: Mon, 21 Nov 2016 23:29:46 +0100 Message-ID: <877f7wii05.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8x5x-0007x2-Ls for emacs-orgmode@gnu.org; Mon, 21 Nov 2016 17:29:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8x5u-0003he-I8 for emacs-orgmode@gnu.org; Mon, 21 Nov 2016 17:29:49 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:33286) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c8x5u-0003hA-Cz for emacs-orgmode@gnu.org; Mon, 21 Nov 2016 17:29:46 -0500 In-Reply-To: (Compro Prasad's message of "Sun, 20 Nov 2016 20:53:42 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Compro Prasad Cc: emacs-orgmode@gnu.org Hello, Compro Prasad 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