From 4dcf8c773729e577ad49a64255e1d9c76c09f7c1 Mon Sep 17 00:00:00 2001 From: Zhengbo Li Date: Thu, 1 Oct 2015 15:59:03 -0700 Subject: [PATCH] bug fixes --- src/compiler/sys.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 91856a46b2..0b4d4dabd5 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -198,12 +198,11 @@ namespace ts { const _fs = require("fs"); const _path = require("path"); const _os = require("os"); - const _process = require("process"); class WatchedFileSet { private watchedFiles: WatchedFile[] = []; private nextFileToCheck = 0; - private watchTimer: NodeJS.Timer; + private watchTimer: any; // average async stat takes about 30 microseconds // set chunk size to do 30 files in < 1 millisecond @@ -299,7 +298,7 @@ namespace ts { var watchedFileSet = new WatchedFileSet(); function isNode4OrLater(): Boolean { - return parseInt(_process.version.charAt(1)) >= 4; + return parseInt(process.version.charAt(1)) >= 4; } const platform: string = _os.platform();