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

Don't shift undefined into the actions list if the queue is empty #14130

Merged
merged 1 commit into from Apr 4, 2017

Conversation

joshlory
Copy link
Contributor

Addresses TypeError: undefined is not an object (evaluating 'e.blockId') on New Relic. The error occurs only on touch devices. I repro'd on iPhone by pressing "Step" twice in a row. https://rpm.newrelic.com/accounts/501463/browser/3787364/js_errors#id=2099206246

Root cause is that iOS Safari doesn't respect disabled on HTML button elements. This means getActions is called when this.steps_ is empty for the ExecutionInfo instance. As a result, this.steps_.shift() returns undefined, which is then pushed into the actions array.

undefined-action

Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

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

👏 👏 👏

@joshlory joshlory merged commit 7749efc into staging Apr 4, 2017
@joshlory joshlory deleted the no-undefined-maze-actions branch April 4, 2017 00:05
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