JS: model process as an EventEmitter

This commit is contained in:
Esben Sparre Andreasen
2020-03-03 14:00:48 +01:00
parent dfa07130b5
commit ae43e90a67
2 changed files with 11 additions and 0 deletions

View File

@@ -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.
*/