jshint/jshint — pull request #497 by brentlintner (2012-03-27 19:55:47+00:00)
Title: Internally mutating the option argument causes unexpected behaviour.

Example:

var options = {regexp: true};
JSHINT("/*jshint regexp: false */\nvar c = /a.b/;", options);
JSHINT("var a = /d.e/;", options);

In the second call, `options.regexp == false`, and no errors are logged.

---

This seemed like the best way to do this (from my perspective).

This was logged as an issue in the [node-jshint](https://github.com/jshint/node-jshint/issues/94) repository.

I also did not create a test for this (and apologize). I had issues installing expresso (which was odd) so, instead I just quickly fixed it and tested it manually. Hopefully this is ok. :-)