gruntjs/grunt-contrib-jasmine — pull request #67 by phopkins (2013-06-13 18:54:21+00:00)
Title: Intercepts jasmine.Spec to stringify it as "[ Spec ]" instead of JSON.

This is required for using jasmine-given with the reporter, as that library
sets expectations on jasmine.Specs themselves. When the Spec is stringified
as JSON, it ends up stringifying the entire Jasmine environment, including
previous ExpectationResults. Since those previous ExpectationResults have had
their "expected" values stringified, they may include stringified Specs
themselves. This leds to exponential growth in the size of stringified Specs.

Special-casing jasmine.Spec prevents the exponential growth by short-circuting
the value to a small, still-useful String.