mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
JS: model process as an EventEmitter
This commit is contained in:
@@ -935,6 +935,15 @@ module NodeJSLib {
|
||||
ImportedNodeJSEventEmitter() { this = getAnEventEmitterImport().getAnInstantiation() }
|
||||
}
|
||||
|
||||
/**
|
||||
* The NodeJS `process` object as an EventEmitter subclass.
|
||||
*/
|
||||
private class ProcessAsNodeJSEventEmitter extends NodeJSEventEmitter {
|
||||
ProcessAsNodeJSEventEmitter() {
|
||||
this = process()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A class that extends EventEmitter.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user