-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Set procedure param missing #1640
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
Set procedure param missing #1640
Conversation
d9a9e13 to
cfccfaa
Compare
cfccfaa to
406db25
Compare
406db25 to
fcafcbd
Compare
| if (frame.params.hasOwnProperty(paramName)) { | ||
| return frame.params[paramName]; | ||
| } | ||
| return null; |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a minor question in the code comments.
|
@mzgoddard, I think this PR is good to go since you answered my question offline. I copied your answer in response to my comment in the code changes. I'm going to merge this in so that it can get smoke tested this Friday. |
Resolves
Parameters outside of their procedure definition always return 0.
Proposed Changes
Depends on #1642
Reason for Changes
Scratch 2 behaviour for parameters outside their procedure (or when the procedure is stack clicked) always returns 0.
Test Coverage
Added 6 integration tests to test parameters outside their procedure under a green flag event and under a different procedure.