js--js-encode-value
js--js-encode-value is a compiled Lisp function in `js.el
'.
(js--js-encode-value X)
Marshall the given value for JS.
Strings and numbers are JSON-encoded. Lists (including nil) are
made into JavaScript array literals and their contents encoded
with `js--js-encode-value'.