joyent/node — Issue #2517: __filename not set when using vm.runInNewContext 
Author: kevindente
Created: 2012-01-11 21:28:37+00:00
State: open

I'm unclear what the intended behavior is here, so I don't know if this is a bug or not. When executing code with vm.runInNewContext, the __filename global is not set, even if the "filename" parameter is specified. This appears to break relative-path require statements. __dirname is set properly.

I tested with Node 0.6.7.