[Bug]: SyntaxError: missing ) after argument list at Function (<anonymous>)
vaclock opened this issue · comments
Version
29.0.3
Steps to reproduce
- my function code
function test(template){
//....
const arg = {
...data,
... that.filters
};
const ar = Object.keys(arg);
const fn = new Function(...ar, str);
}
Expected behavior
my function is correct, not a SyntaxError
Actual behavior
.
Debug log
.
Additional context
No response
Environment
node:node/16.16.0
macos:11.6.8