aboutsummaryrefslogtreecommitdiffstats
path: root/tools/may_execute_js_code.js
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-03 16:18:32 +0800
committerGitHub <noreply@github.com>2024-07-03 16:18:32 +0800
commit499b7cdef5d62298c17889895a61a110d7cd8168 (patch)
tree94d5c0d1fa7cd90e7948ae9d55e5b00bdf4ac289 /tools/may_execute_js_code.js
parent970ed06d2b5759e8d17aeed55fbfde591fb0ff84 (diff)
downloadllm-functions-docker-499b7cdef5d62298c17889895a61a110d7cd8168.tar.gz
feat: rename `may_execute_*` to `execute_*` (#56)
Diffstat (limited to 'tools/may_execute_js_code.js')
-rw-r--r--tools/may_execute_js_code.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/may_execute_js_code.js b/tools/may_execute_js_code.js
deleted file mode 100644
index 4706e07..0000000
--- a/tools/may_execute_js_code.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Runs the javascript code in node.js.
- * @typedef {Object} Args
- * @property {string} code - Javascript code to execute, such as `console.log("hello world")`
- * @param {Args} args
- */
-exports.run = function run({ code }) {
- eval(code);
-}