all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ob-js uses deprecated Node APIs
@ 2020-03-10 23:47 Ivan Sokolov
  2020-05-20 20:05 ` Matthew Lundin
  2020-05-22 14:09 ` Bastien
  0 siblings, 2 replies; 3+ messages in thread
From: Ivan Sokolov @ 2020-03-10 23:47 UTC (permalink / raw)
  To: emacs-orgmode

I ran into problems with ob-js. When resolving them, I found that require ('sys') is deprecated, there is a patch.

diff --git a/lisp/ob-js.el b/lisp/ob-js.el
index 7592040ab..d459e8069 100644
--- a/lisp/ob-js.el
+++ b/lisp/ob-js.el
@@ -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)

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-22 14:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-10 23:47 ob-js uses deprecated Node APIs Ivan Sokolov
2020-05-20 20:05 ` Matthew Lundin
2020-05-22 14:09 ` Bastien

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.