-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[jsscripting] Implement NodeJS-like parameter handling for timer polyfills #15193
Conversation
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Just out of curiosity , i'm looking at It looks like passing args should be supported there ? But the "args" argument does not look like its actually being used in the java class? I only looked at this casually, so not sure if there more to it? |
The Java methods only accept arguments (so we don‘t have a signature mismatch), but the arguments aren‘t actually passed to anything. Looking at the Implementing the argument passing in the JS layer is a type-safe and really simple alternative, but I think I‘ll remove the |
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
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
@jlaur Ping |
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.
Thanks!
…fills (openhab#15193) * [jsscripting] Implement NodeJS-like param handling for timer polyfills * [jsscripting] Clean-Up ThreadsafeTimer methods Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Regression from openhab#15193. Reported on the community, see https://community.openhab.org/t/openhab-4-0-release-discussion/147957/53?u=florian-h05. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Regression from #15193. Reported on the community, see https://community.openhab.org/t/openhab-4-0-release-discussion/147957/53?u=florian-h05. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Regression from #15193. Reported on the community, see https://community.openhab.org/t/openhab-4-0-release-discussion/147957/53?u=florian-h05. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
…fills (openhab#15193) * [jsscripting] Implement NodeJS-like param handling for timer polyfills * [jsscripting] Clean-Up ThreadsafeTimer methods Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Signed-off-by: Matt Myers <mmyers75@icloud.com>
…fills (openhab#15193) * [jsscripting] Implement NodeJS-like param handling for timer polyfills * [jsscripting] Clean-Up ThreadsafeTimer methods Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
…5308) Regression from openhab#15193. Reported on the community, see https://community.openhab.org/t/openhab-4-0-release-discussion/147957/53?u=florian-h05. Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Fixes #15182.
This implements NodeJS/WebAPI-like parameter handling for the
setTimeout
andsetInterval
polyfills as documented in the MDN Web Docs.