diff --git a/_venera_.js b/_venera_.js index 7705a84..264e7cd 100644 --- a/_venera_.js +++ b/_venera_.js @@ -1403,7 +1403,7 @@ let APP = { * Set clipboard text * @param text {string} * @returns {Promise} - * + * * @since 1.3.4 */ function setClipboard(text) { @@ -1416,7 +1416,7 @@ function setClipboard(text) { /** * Get clipboard text * @returns {Promise} - * + * * @since 1.3.4 */ function getClipboard() { @@ -1428,11 +1428,11 @@ function getClipboard() { /** * Compute a function with arguments. The function will be executed in the engine pool which is not in the main thread. * @param func {string} - A js code string which can be evaluated to a function. The function will receive the args as its only argument. - * @param args {any[] | null | undefined} - The arguments to pass to the function. + * @param args {any[]} - The arguments to pass to the function. * @returns {Promise} - The result of the function. * @since 1.5.0 */ -function compute(func, args) { +function compute(func, ...args) { return sendMessage({ method: 'compute', function: func,