Skip to content

src: fix vm bug for configurable globalThis

Object.defineProperty allows to change the value for non-writable properties if they are configurable. We missed that case in the vm module when checking if a property is read-only.

Fixes: https://github.com/nodejs/node/issues/47799

cc @domenic

Merge request reports

Loading