wdavidw/node-connect-coffee-script — pull request #1 by davewasmer (2012-08-16 15:25:27+00:00)
Title: Fix for options handling

CoffeeScript modifies the options object that is passed in. Subsequent compile calls with the same options hash result in the closure wrapper and various helper functions being stripped from the source. This is a good idea when concatenating several files together, but for one-off files (the more likely use case for this package), it introduces all kinds of errors.

This patch clones the options object each time so the original options hash is not polluted by the CoffeeScript compiler.