You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tns --version 3.0.3 tested on android emulator platform version 25 and device with API 7.x
Timers are a very well spec'd primitive, universally compatible with every platform but IE < 10 ... please don't be IE < 10 😄
setTimeout(console.log,2000,'hello','world');
The expected output is the equivalent of executing console.log('hello', 'world') after 2 seconds.
Instead, NativeScript runtime does not pass arguments along.
I have no idea how much code out there give this for granted, since it works literally everywhere like this, but it broke anyway already few scripts of mine.
Please consider fixing this or report this upstream if it's a nashorn issue (I'm really new to TS I'v eno idea what's exactly behind as JS core but so far it looks most of it just works out of the box, kudos that!)
Hi @WebReflection,
Thank you for the suggestion. this could be a useful feature for the Timers in NativeScript.
We will investigate, how it could be integrated into NativeScirpt. You could keep track on the issue for further info.
Something more, you could also make your own PR to tns-core-modules, which implements this functionality, we will review it and if all test passed, we will include it. For further info review this article.
The PR is up and running. The code is self explanatory and it should just work but if you can tell me where to find/write tests for the extra ...args I'll try to write some.
Activity
tsonevn commentedon Jun 15, 2017
Hi @WebReflection,
Thank you for the suggestion. this could be a useful feature for the Timers in NativeScript.
We will investigate, how it could be integrated into NativeScirpt. You could keep track on the issue for further info.
Something more, you could also make your own PR to
tns-core-modules, which implements this functionality, we will review it and if all test passed, we will include it. For further info review this article.Standard timers - fix for NativeScript#4384
WebReflection commentedon Jun 15, 2017
The PR is up and running. The code is self explanatory and it should just work but if you can tell me where to find/write tests for the extra
...argsI'll try to write some.Standard timers - fix for NativeScript#4384
Standard timers - fix for NativeScript#4384
Standard timers - fix for #4384 (#4389)
atanasovg commentedon Aug 17, 2017
Closed with #4389
lock commentedon Aug 28, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.