kulshekhar / ts-jest

A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.

Home Page:https://kulshekhar.github.io/ts-jest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: SyntaxError: missing ) after argument list at Function (<anonymous>)

vaclock opened this issue · comments

Version

29.0.3

Steps to reproduce

  1. my function code
    function test(template){
    //....
    const arg = {
    ...data,
    ... that.filters
    };
    const ar = Object.keys(arg);
    const fn = new Function(...ar, str);
    }

image

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