feat: rename may_execute_* to execute_* (#56)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
Reference in New Issue
Block a user