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(reporter): don't use case sensitive keys #102

Merged
merged 1 commit into from
May 7, 2021

Conversation

lkipke
Copy link
Contributor

@lkipke lkipke commented May 7, 2021

Summary

brs recently introduced better handling of associative array keys, and case-sensitive keys are now the default when printing assoc arrays. However, this broke our stackFrames implementation because we used camel case. This results in a runtime error that prints out a Javascript stack trace to the user whenever they have a failed test case.

An easy, backwards-compatible fix is to use snake case instead!

@lkipke lkipke added bug Something isn't working brs Root cause is in the brs intepreter labels May 7, 2021
@lkipke lkipke requested review from sjbarag and alimnios72 May 7, 2021 16:17
@lkipke lkipke self-assigned this May 7, 2021
Copy link
Contributor

@sjbarag sjbarag left a comment

Choose a reason for hiding this comment

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

Nice work looking out for older versions of brs!

@lkipke lkipke merged commit 3cd33fb into hulu:main May 7, 2021
@lkipke lkipke deleted the fix-reporter-error branch May 7, 2021 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brs Root cause is in the brs intepreter bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants