Skip to content

Commit

Permalink
Don't use _fs.realpathSync.native on windows, a semi-revert of micros…
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Mar 23, 2021
1 parent 822cb3a commit 064b19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/sys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ namespace ts {
let activeSession: import("inspector").Session | "stopping" | undefined;
let profilePath = "./profile.cpuprofile";

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

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

0 comments on commit 064b19d

Please sign in to comment.