Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isolate use of json-stringify-safe. #1435

Merged
merged 1 commit into from
Jan 9, 2017
Merged

Isolate use of json-stringify-safe. #1435

merged 1 commit into from
Jan 9, 2017

Conversation

paulirish
Copy link
Member

Our data structures do not have circular references, with the exception of networkRecords.
json-stringify-safe was added (by me) to the report generator, however it's unnecessary there.

Additionally, the devtools minifier attempted to minify json-stringify-safe and had trouble with the semi-colon-less code style. (Yes, the devtools' minifier is lame, but oh well).

👷

@@ -18,6 +18,7 @@

const fs = require('fs');
const log = require('../../lighthouse-core/lib/log.js');
// The networkRecords artifacts have circular references
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add this comment next to the single usage so we know why that one is different.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@paulirish paulirish merged commit 7292fa1 into master Jan 9, 2017
@brendankenny brendankenny deleted the strngifysafe branch January 9, 2017 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants