gotwarlost/istanbul — pull request #215 by jason0x43 (2014-07-01 18:19:45+00:00)
Title: Hook transformer should verify filename argument

The transformer function always calls `path.resolve` on the filename argument of the code under consideration. However, the filename argument to `vm.runInThisContext` is optional, and `vm.runInThisContext` doesn't verify that it's a string (which `path.resolve` requires).

This PR includes updated unit tests along with the change to `lib/hook.js`.