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

Optional Chainging Operator errors in debug console #187

Conversation

jtuckerfubo
Copy link
Collaborator

When evaluating an expression with the optional chaining operator, where the operator is not used for the last (rightmost) path part, an error results in the debug console.

The fix is to send the expression (a dotted chain of variable names) as a whole assignment. Example: m.top.b?.c => '_var = m.top.b?.c'

Tested on OS 12.5 and added unit tests to the roku-debug workspace

When evaluating an expression with the optional chaining operator, where
the operator is not used for the last (rightmost) path part, an error
results in the debug console.

The fix is to send the expression (a dotted chain of variable names) as
a whole assignment. Example: m.top.b?.c => '_var = m.top.b?.c'

Tested on OS 12.5 and added unit tests to the roku-debug workspace
@TwitchBronBron TwitchBronBron changed the title TBD-221: Optional Chainging Operator errors in debug console Optional Chainging Operator errors in debug console Mar 22, 2024
@TwitchBronBron TwitchBronBron merged commit e3eb9e5 into master Mar 22, 2024
4 checks passed
@TwitchBronBron TwitchBronBron deleted the bug/TBD-221-optional-chaining-operator-gives-error-in-debug-console branch March 22, 2024 18:09
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