Skip to content

Commit

Permalink
Update src/compiler/sys.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jordi Oliveras Rovira <jordi.oliveras.rovira@gmail.com>
  • Loading branch information
orta and j-oliveras committed Mar 23, 2021
1 parent 064b19d commit 608ae45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/sys.ts
Expand Up @@ -1186,7 +1186,7 @@ namespace ts {
let activeSession: import("inspector").Session | "stopping" | undefined;
let profilePath = "./profile.cpuprofile";

const realpathSync = process.platform !== "win32" ? _fs.realpathSync.native : _fs.realpathSync;
const realpathSync = process.platform !== "win32" ? (_fs.realpathSync.native ?? _fs.realpathSync) : _fs.realpathSync;

const Buffer: {
new (input: string, encoding?: string): any;
Expand Down

0 comments on commit 608ae45

Please sign in to comment.