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

Playlab: Fix another JS error #47756

Merged
merged 1 commit into from
Aug 23, 2022
Merged

Conversation

breville
Copy link
Member

The new highest error in New Relic was a brief spike generated by just a couple users, when throwing an error that we could instead just ignore.

Uncaught RangeError: Incorrect parameter: 12

Screen Shot 2022-08-22 at 11 50 53 AM

The new highest error in New Relic was for a spike for just a couple
users, when throwing an error that we could instead just ignore.
@breville breville requested a review from a team August 22, 2022 18:52
@@ -5653,7 +5653,7 @@ Studio.setSprite = function(opts) {

var spriteIndex = opts.spriteIndex;
if (spriteIndex < 0 || spriteIndex >= Studio.spriteCount) {
throw new RangeError('Incorrect parameter: ' + spriteIndex);
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the student see anything indicating the mistake they made when this error is thrown currently? Or are they too young so we don't show anything anyway?

Copy link
Member Author

Choose a reason for hiding this comment

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

Great question. No, the student experience didn't change from my testing. Both before and after, the program would just stop running with the offending block highlighted. But before, we'd be firing an exception every frame.

@breville breville merged commit 38f5a45 into staging Aug 23, 2022
@breville breville deleted the playlab-fix-another-js-error branch August 23, 2022 16:37
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