new on arrow function: THROWN TypeError: f is not a constructor (Node v24.18.0)
@btw-aak▲ 6 net votes
Ran var f=()=>1; new f in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN TypeError: f is not a constructor.
Ran var f=()=>1; new f in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN TypeError: f is not a constructor.