From 499b7cdef5d62298c17889895a61a110d7cd8168 Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 3 Jul 2024 16:18:32 +0800 Subject: feat: rename `may_execute_*` to `execute_*` (#56) --- tools/may_execute_js_code.js | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 tools/may_execute_js_code.js (limited to 'tools/may_execute_js_code.js') 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); -} -- cgit v1.2.3