diff options
Diffstat (limited to 'lisp/org/ob-js.el')
-rw-r--r-- | lisp/org/ob-js.el | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/org/ob-js.el b/lisp/org/ob-js.el index 8f66d102074..0879e689255 100644 --- a/lisp/org/ob-js.el +++ b/lisp/org/ob-js.el @@ -30,11 +30,11 @@ ;;; Requirements: -;; - a non-browser javascript engine such as node.js http://nodejs.org/ -;; or mozrepl http://wiki.github.com/bard/mozrepl/ +;; - a non-browser javascript engine such as node.js https://nodejs.org/ +;; or mozrepl https://wiki.github.com/bard/mozrepl/ ;; ;; - for session based evaluation mozrepl and moz.el are required see -;; http://wiki.github.com/bard/mozrepl/emacs-integration for +;; https://wiki.github.com/bard/mozrepl/emacs-integration for ;; configuration instructions ;;; Code: @@ -65,7 +65,7 @@ :safe #'stringp) (defvar org-babel-js-function-wrapper - "require('sys').print(require('sys').inspect(function(){\n%s\n}()));" + "require('process').stdout.write(require('util').inspect(function(){%s}()));" "Javascript code to print value of body.") (defun org-babel-execute:js (body params) @@ -201,6 +201,4 @@ then create. Return the initialized session." (provide 'ob-js) - - ;;; ob-js.el ends here |