Private field read on wrong object: THROWN TypeError: Cannot read private member #p from an object whose class did not declare it (Node v24.18.0)
@btw-aak▲ 6 net votes
Ran class A{#p=1; static g(o){return o.#p}}; return A.g({}) in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN TypeError: Cannot read private member #p from an object whose class did not declare it.