Skip to content
Permalink
Browse files

Fix ESLint upgrade "parsing error"

Reviewed By: adamjernst

Differential Revision: D6959356

fbshipit-source-id: 77c61998f23a6acd7cdfe2c87d8760a23d957800
  • Loading branch information...
zertosh authored and facebook-github-bot committed Feb 10, 2018
1 parent bba19e8 commit 9d214967d2c8184ce26addec150e392e3b519fcd
Showing with 3 additions and 7 deletions.
  1. +3 −7 Libraries/Core/Timers/JSTimers.js
@@ -244,11 +244,7 @@ const JSTimers = {
* @param {function} func Callback to be invoked after `duration` ms.
* @param {number} duration Number of milliseconds.
*/
setTimeout: function(
func: Function,
duration: number,
...args?: any
): number {
setTimeout: function(func: Function, duration: number, ...args: any): number {
if (__DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS) {
console.warn(
ANDROID_LONG_TIMER_MESSAGE +
@@ -273,7 +269,7 @@ const JSTimers = {
setInterval: function(
func: Function,
duration: number,
...args?: any
...args: any
): number {
if (__DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS) {
console.warn(
@@ -296,7 +292,7 @@ const JSTimers = {
* @param {function} func Callback to be invoked before the end of the
* current JavaScript execution loop.
*/
setImmediate: function(func: Function, ...args?: any) {
setImmediate: function(func: Function, ...args: any) {
const id = _allocateCallback(
() => func.apply(undefined, args),
'setImmediate',

0 comments on commit 9d21496

Please sign in to comment.
You can’t perform that action at this time.