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

fix(audit/without-javascript): non-string error handling #971

Merged
merged 1 commit into from
Nov 18, 2016

Conversation

patrickhulce
Copy link
Collaborator

Handles the issue with a two-pronged solution.

  1. Ensure if innerText returns something other than a string to surface the error in the gatherer
  2. Ensure the type of the resulting artifact is a string before calling .trim

Addresses #967

Handles the issue with a two-pronged solution.

1. Ensure if `innerText` returns something other than a string to surface the error in the gatherer
2. Ensure the type of the resulting artifact is a string before calling `.trim`

Addresses GoogleChrome#967
Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

looks great to me

@brendankenny brendankenny merged commit 0220f26 into GoogleChrome:master Nov 18, 2016
andrewrota pushed a commit to andrewrota/lighthouse that referenced this pull request Jan 13, 2017
…e#971)

Handles the issue with a two-pronged solution.

1. Ensure if `innerText` returns something other than a string to surface the error in the gatherer
2. Ensure the type of the resulting artifact is a string before calling `.trim`

Addresses GoogleChrome#967
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.

2 participants