From e1d895cc9abb0f7ffac8acc043746cbe2e5f4fe1 Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 7 Jun 2024 16:10:05 +0800 Subject: refactor: py/js entry func name (#31) --- tools/may_execute_js_code.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/may_execute_js_code.js') 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); } -- cgit v1.2.3