From aa03a04c7fc069214a47f71f525201a59de52e89 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Tue, 20 Sep 2016 11:30:34 -0700 Subject: [PATCH] Use explicit coercion --- src/server/utilities.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/utilities.ts b/src/server/utilities.ts index 300aa6e0e6..9bc31704db 100644 --- a/src/server/utilities.ts +++ b/src/server/utilities.ts @@ -95,14 +95,14 @@ namespace ts.server { return 0; } - return Math.max.apply(Math, paths.map(path => { + return Math.max(...paths.map(path => { if (host.directoryExists(path)) { - return host.getModifiedTime(path); + return +host.getModifiedTime(path); } else { return 0; } - })); + }); } export function mergeMaps(target: MapLike, source: MapLike ): void {