joyent/node — pull request #8331 by trevnorris (2014-09-08 21:06:02+00:00)
Title: src: fix Environment::GetCurrent() resource leak

Environment::GetCurrent(Isolate*) makes a call to
Isolate::GetCurrentContext(), which returns a Local. Hence,
every call to GetCurrent(Isolate*) should be made within a HandleScope
or EscapableHandleScope.

Also removed excessive calls to GetCurrent().

/cc @bnoordhuis @indutny