Skip to content

Directly using process.argv in typescript.js #33142

@Bobris

Description

@Bobris

TypeScript Version: 3.6.2 (offending code is still in repo when writing this)

Search Terms:
process argv etw

Code

perfLogger.logInfoEvent(`Starting TypeScript v${versionMajorMinor} with command line: ${JSON.stringify(process.argv)}`);

    perfLogger.logInfoEvent(`Starting TypeScript v${versionMajorMinor} with command line: ${JSON.stringify(process.argv)}`);

Expected behavior:
Should not use process directly.

Actual behavior:
It crashes in hosts which does not have process like browsers or any other than nodejs.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions