[TIMOB-26541] Android: setTimeout and setInterval do not support calls without interval specified
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-11-26T16:34:24.000+0000 |
Affected Version/s | Release 7.5.0 |
Fix Version/s | Release 8.0.0 |
Components | Android |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Christopher Williams |
Created | 2018-11-09T18:24:20.000+0000 |
Updated | 2018-11-26T16:34:44.000+0000 |
Description
According to the spec for setTimeout and setInterval for the web, the delay/interval value is optional and should default to 0 (or ASAP).
https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval
The recent fixes on iOS around timers exposed the lack of support there, which was then fixed. Android also does not yet support omitting the delay argument. To hew to the spec as much as possible we'll create unspecified delays or delays of 0 or less as being 1ms delays.
https://github.com/appcelerator/titanium_mobile/pull/10451
FR Passed. Waiting for CR to merge.