Skip to content

Commit aa03a04

Browse files
committed
Use explicit coercion
1 parent 76f51ad commit aa03a04

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/server/utilities.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ namespace ts.server {
9595
return 0;
9696
}
9797

98-
return Math.max.apply(Math, paths.map(path => {
98+
return Math.max(...paths.map(path => {
9999
if (host.directoryExists(path)) {
100-
return host.getModifiedTime(path);
100+
return +host.getModifiedTime(path);
101101
}
102102
else {
103103
return 0;
104104
}
105-
}));
105+
});
106106
}
107107

108108
export function mergeMaps(target: MapLike<any>, source: MapLike <any>): void {

0 commit comments

Comments
 (0)