pufuwozu/roy — pull request #143 by tarnacious (2012-07-21 12:03:19+00:00)
Title: Fix `ReferenceError: fs is not defined` when loading files in the REPL

I was seeing `ReferenceError: fs is not defined` when loading `:l` files into the REPL.

I updated `getFileContents` to take an instance of `fs` as a parameter and passed it through. You could also `require 'fs'` it in the function or within the functions scope.

I'm not sure if I was just doing something wrong, but this fixed my problem for me. If it helps you and others, great.