src: fix minor inefficiency in Buffer::New() call
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 1 May 2015 15:25:18 +0000 (17:25 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 4 May 2015 22:41:59 +0000 (00:41 +0200)
commit2ed10f13492221da0e5d1795bb0c780308c08d48
treed088c8fd14c69e56ad94244196a04836ac8d43f1
parentf696c9efabd7efc962c6f01ac111c5809117ba95
src: fix minor inefficiency in Buffer::New() call

Commit ccb199a ("src: fix deprecation warnings") passes env()->isolate()
to the Buffer::New() call.  It's somewhat inefficient because the callee
looks up the environment from the isolate.  Just pass the env directly.

PR-URL: https://github.com/iojs/io.js/pull/1577
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
src/spawn_sync.cc
src/spawn_sync.h