Turning on "Prefix serialized JSON with" in ACF causes issues in code coverage report

Description

/system/coverage/browser/CodeBrowser.cfc creates HTML/JavaScript content. In that content it creates a variable named lineNumbersBGColorsJSON. This is currently set as follows.

The resulting file typically looks something like this:

When the Prefix serialized JSON with box is checked in ACF (we are running ACF 2018) the result ends up as follows:

The prefix comments out the JSON string, causing the line numbers not to show the colors.

Activity

Show:
Dan Rouw
September 23, 2020, 4:56 PM

Here is the report with no line colors:

Dan Rouw
September 23, 2020, 4:57 PM

After the fix it looks correct.

Dan Rouw
September 23, 2020, 5:01 PM

Pull Request 114 has been opened

Assignee

Brad Wood

Reporter

Dan Rouw

Labels

None

Time tracking

1h

Fix versions

Priority

Minor
Configure