niix/haversine — pull request #1 by jimbru (2013-01-21 20:58:06+00:00)
Title: Fix leak error in Mocha.

When running a unit test under the Mocha framework, assigning to globals
triggers the leak detector and (unless you specify the --ignore-leaks
flag) causes the test to fail. This diff fixes the declaration of R such
that it no longer triggers the leak detector. Note that this affects not
just tests directly testing this module, but any Mocha tests that test
modules with a dependency on Haversine.