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

Check hasOwnProperty before accessing field #2647

Merged

Conversation

hkrutzer
Copy link
Contributor

@hkrutzer hkrutzer commented Dec 5, 2016

I've been getting Cannot read property 'breakpoint' of undefined here from our Javascript error tracking system. I have not been able to reproduce this outside of a testcase, and I am unsure what exactly is causing this error (perhaps some third party abusing the Array prototype), but this should solve it.

Testcase here.

@alex-ketch
Copy link

I was encountering the same issue and this fixes it.

@kenwheeler kenwheeler merged commit 21a426d into kenwheeler:master Jan 3, 2017
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.

3 participants