Skip to content

JavaScript: Recognise references to the process global.#1432

Merged
semmle-qlci merged 2 commits intogithub:masterfrom
xiemaisi:js/process-module
Jun 11, 2019
Merged

JavaScript: Recognise references to the process global.#1432
semmle-qlci merged 2 commits intogithub:masterfrom
xiemaisi:js/process-module

Conversation

@xiemaisi
Copy link

In Node.js, the process global variable contains an import of the process module from the standard library. Fortunately we can model this quite elegantly, and without hurting performance too badly (internal link).

@xiemaisi xiemaisi added the JS label Jun 10, 2019
@xiemaisi xiemaisi requested a review from a team as a code owner June 10, 2019 11:15
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.
Can you add a test that shows that we treat process, global.process, and require('process') in the same way?

@xiemaisi
Copy link
Author

Done.

@semmle-qlci semmle-qlci merged commit dbf085a into github:master Jun 11, 2019
@xiemaisi xiemaisi deleted the js/process-module branch August 11, 2019 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants