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
Interesting. Closer inspection of node's context objects reveals that upon running something in a context the context object receives its own (non-enumerable) copy of every global, which is not identical with the current global.
I think the problem is that vm-browserify only copies properties which were already on the context before the eval or were introduced by the eval'd code.
Activity
pluma commentedon Jan 20, 2014
Interesting. Closer inspection of node's context objects reveals that upon running something in a context the context object receives its own (non-enumerable) copy of every global, which is not identical with the current global.
I think the problem is that
vm-browserifyonly copies properties which were already on the context before the eval or were introduced by the eval'd code.amasad commentedon Jan 20, 2014
It seems very hard to match the exact behavior on both so I wrote a more simplified module: context-eval
tcql commentedon Mar 17, 2015
it seems that the iframe disposal also prevents you from running async code inside a context, which breaks some stuff I wanted to do