Fix issues with v8 contexts in vm module #3039
laverdet wants to merge 2 commits into nodejs:masterfrom unknown repository
Commits on Mar 30, 2012
Mar 30, 2012
This EvalMachine function is an RIAA nightmare and doesn't enter and exit contexts correctly. I used an auto_ptr with a Context::Scope to handle the dynamic nature of EvalMachine's behavior and created a class which will dispose a persitent handle at the end of scope. This ensures 100% that the context is exited if needed, and disposed if needed.