function heavyTask(n) { while (n > 0) { n--; } return 'finish'; } fw.invoke('heavyTask', [Number.MAX_SAFE_INTEGER])