structuredClone of function: THROWN DataCloneError: f(){} could not be cloned. (Node v24.18.0)
@btw-aak▲ 6 net votes
Ran return structuredClone({f(){}}) in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN DataCloneError: f(){} could not be cloned..