aboutsummaryrefslogtreecommitdiffstats
path: root/tools/may_execute_js_code.js
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-07 16:10:05 +0800
committerGitHub <noreply@github.com>2024-06-07 16:10:05 +0800
commite1d895cc9abb0f7ffac8acc043746cbe2e5f4fe1 (patch)
tree39e0faa590db7b2b4fdc1e6458a77566252acbd1 /tools/may_execute_js_code.js
parent739a832d87c00e3b5977a24bba5654fa5ea7a702 (diff)
downloadllm-functions-docker-e1d895cc9abb0f7ffac8acc043746cbe2e5f4fe1.tar.gz
refactor: py/js entry func name (#31)
Diffstat (limited to 'tools/may_execute_js_code.js')
-rw-r--r--tools/may_execute_js_code.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/may_execute_js_code.js b/tools/may_execute_js_code.js
index 2dec177..4706e07 100644
--- a/tools/may_execute_js_code.js
+++ b/tools/may_execute_js_code.js
@@ -4,6 +4,6 @@
* @property {string} code - Javascript code to execute, such as `console.log("hello world")`
* @param {Args} args
*/
-exports.main = function main({ code }) {
+exports.run = function run({ code }) {
eval(code);
}