-
Notifications
You must be signed in to change notification settings - Fork 7.3k
vm: context created from global
is missing all properties
#7140
Comments
@gfxmonk it works with the master |
@obastemur you sure? I compiled e746bbd locally this morning to test, and it still acts as above for me. |
@gfxmonk confirming. |
The answer is that > Object.getOwnPropertyDescriptor(global, 'console')
{ get: [Function],
set: undefined,
enumerable: true,
configurable: true } @domenic is it intentional or bug? |
Well if it's a regression, it's a bug. But I thought we had a test for getters. https://github.com/joyent/node/blob/master/test/simple/test-vm-create-context-accessors.js |
Perhaps, it is some sort of v8 trickery... |
Well I am not sure that we don't have a curious issue with Windows: After a hardwork from moving my stuff to 0.10.x to 0.11.11 with NaN for my native modules, I have a similar problem with module instances, I have this when I use VM functions, in fact I found multiple entries in the Module._cache of the same module... You will appreciate the C uppercase and c lower case....
I am using My 2 cents |
It comes from : Shall I need to enter an issue or do you think it's a normal behavior ?
Code: path.js // If device is a drive letter, we'll normalize to lower case.
if (device && device.charAt(1) === ':') {
device = device[0].toLowerCase() + device.substr(1);
} Question : Why ? |
I guess this is duplicate of #7031 |
@migounette could you please not discuss off-topic stuff in the issue? |
By default, each `v8::Context` has a different Security Token, which prevents access to one context from another. fix nodejs#7140
Should be fixed by #7328 |
The StratifiedJS (http://onilabs.com/stratifiedjs) runtime makes use of nodejs' vm module, and things are breaking in node v0.11.
Something we are doing which works fine in 0.10 and below is:
But in v0.11.10, this fails with "TypeError: Cannot call method 'log' of undefined".
I did look through the other open issues relating to the
vm
module, but those are all quite specific, so it's hard for me to know whether this is the same issue without much knowledge of thevm
module internals. I'm happy for this to be marked as a dupe if someone more knowledgeable thinks it is, though.The text was updated successfully, but these errors were encountered: