-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
[blockly] Fix ZDT comparison between block on GraalJS #2040
[blockly] Fix ZDT comparison between block on GraalJS #2040
Conversation
Signed-off-by: Brian Dooleweerdt Rasmussen <brian.rasmussen80@gmail.com>
Another way of solving this could be to move the original line in 740 to 750 (into the else clause of isGraalJS): |
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.
Thx @Dooleweerdt to catch this and provide the fix.
@openhab/webui-maintainers This fix looks good to me as it is similar to how it is done in "oh_zdt_compare". Do you mind merging it?
Job #1129: Bundle Size — 15.75MiB (-0.03%).Metrics (no changes)
Total size by type (2 changes)
|
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.
LGTM, thanks!
question... Intermediate workarounds I found: Variant a: set scripting language to ECMA - 262 Edition 5.1 (Nashorn) Variant b: dont use the IS - AFTER block when between block was used => reformulate it as IS - BETWEEN - AND block, which should be possible in most cases |
Either install the openHAB 4.1.0 SNAPSHOTs (I do not recommend this unless you are one of the very technical openHAB users and willing to regularly take care of it) or wait for a 4.0.x patch release. I will backport this. |
Thank you, somehow I am normally the guy for snapshots, but as I didn't understand or didn't investigate deep enough how to setup a full working dev environment, and not fully in the picture on the release logic, I think I will wait for the back port, especially as i have a working solution, which is not even that unelegant. Where maybe the reverse workaround formulating between as after and before clause is even more powerful. |
Please, in this case open a new issue for that with an example on how to reproduce it. Thanks. |
Fixes #2038 Signed-off-by: Brian Dooleweerdt Rasmussen <brian.rasmussen80@gmail.com>
Fixes openhab#2038 Signed-off-by: Brian Dooleweerdt Rasmussen <brian.rasmussen80@gmail.com> Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Fixes #2038