node-webkit-agent icon indicating copy to clipboard operation
node-webkit-agent copied to clipboard

global.data

Open marcominetti opened this issue 10 years ago • 1 comments

Hi, I was looking at global objects and I've found the global.data object.

{"method":"Runtime.evaluate","params":{"expression":"JSON.stringify(global.data)","objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":false,"returnByValue":false,"generatePreview":true},"id":82}

I suppose it is node-webkit-agent specific. Can't it be kept private?

I have no time now to clean it, but I recommend not to use globals if not strictly necessary.

Do you agree?

marcominetti avatar Sep 08 '14 09:09 marcominetti

It is part of the console agent I believe. That is the message the front-end sends to the agent in order to evaluate variables in Node side. Although, I'm not sure it currently works since the debugger agent is not complete.

c4milo avatar Sep 08 '14 11:09 c4milo