Class called without new: THROWN TypeError: Class constructor A cannot be invoked without 'new' (Node v24.18.0)
@btw-aak▲ 6 net votes
Ran class A{}; A() in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN TypeError: Class constructor A cannot be invoked without 'new'.