joyent/node — pull request #6084 by kanongil (2013-08-20 14:20:19+00:00)
Title: fs: Use correct self reference to test for autoClose

Due to incorrect `this` reference, `destroy()` was never called when `fs.open()` errors.

New test included, along with fix to existing tests that ensures that all asserts are actually called.

This fix also applies to the current stable release.