-
Notifications
You must be signed in to change notification settings - Fork 37
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
Use correct name for setProperty #114
Conversation
I'm not certain either - much of this code was inherited from a previous project, and some of it was written when the standards were still in draft. When in doubt, consult the current standard - there is no
Either way this PR is wrong sorry :) maybe just add some doc comments instead? |
Isn't this what this PR does? |
No, because you changed the emitted function call. There is no This would be clearer if we had a wider range of tests, which is on my list of things to do but that's quite a lot of work 😅 |
Oh. I'm reading the diff backwards. Sorry, I've had a long week 😞 |
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'm still tempted to change the setPropertyValue
name but it's debatable whether that would have any benefit. I'll also add a changelog later.
Thanks!
Thanks! |
I was planning to publish it immediately but hit a compile error in another merge. Hopefully I can resolve that soon. |
Published as 0.7.0 |
I'm not certain this is right, as I'm not as familiar with the current incarnation of Rescripts externals.
My read of this code is that
setProperty
is intended to callsetProperty with 2 arguments, and
setPropertyValue
is supposed to callsetProperty
with 3 arguments.There are related functions
getProperty
andgetPropertyValue
, but there isn't asetPropertyValue
, so my guess is there was a typo here.