core: Fix crashes on invalid subscripting & iterating over non-iterables. #440
No reviewers
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Blocks
Reference: M-Labs/nac3#440
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix-panic-432"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the crash seen in #432. This PR fixes the following two specific issues.
1. Crash on attempting to subscript into an non-scriptable value.
For example:
Now a proper error is reported:
Furthermore, the crash on #432 is now also fixed, and a proper error message is reported:
2. Crash on attempting to use
for
to iterate over an non-iterable value.For example:
Now a proper error is reported:
2acf9b88e9
to56fa2b6803