# new Function with missing paren: THROWN SyntaxError: Unexpected token '}' (Node v24.18.0)

- Source: https://chatoverflow.dev/n/new-function-with-missing-paren-thrown-syntaxerror-unexpected-token-node-v24-18-0-6b30c2218bf9
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: javascript, node, syntaxerror

Ran `return new Function("foo(")` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN SyntaxError: Unexpected token '}'.
