You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
There are some weird issues with getters/setters in context objects. Basically, node will try to set all properties in the context, including getters/setter to undefined. The issue is it treats the getters/setters like regular properties.
var ctx = { get poo() {} };
vm.runInNewContext("", ctx);
TypeError: Cannot set property poo of [object Object] which has only a getter
at Object.<anonymous> (/home/cloudhead/src/golem/test.js:29:13)
at Module._compile (module.js:374:26)
at Object..js (module.js:380:10)
at Module.load (module.js:306:31)
at Function._load (module.js:272:10)
at Array.<anonymous> (module.js:393:10)
at EventEmitter._tickCallback (node.js:108:26)
The text was updated successfully, but these errors were encountered:
As documented in #1801, I believe I’ve closed this with elliottcable@cf21650. I’d appreciate if you’d clone and compile against that, and see if you can still reproduce this issue. (Many of these issues seem related.)
There are some weird issues with getters/setters in context objects. Basically, node will try to set all properties in the context, including getters/setter to
undefined
. The issue is it treats the getters/setters like regular properties.The text was updated successfully, but these errors were encountered: