mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JS: add process EventEmitter test
This commit is contained in:
@@ -37,4 +37,11 @@ class ExtendsMyCustomEmitter extends MyEventEmitter{}
|
||||
|
||||
var em5 = new ExtendsMyCustomEmitter();
|
||||
em5.on("yibity", (x) => {});
|
||||
em5.emit("yibity", "yabity");
|
||||
em5.emit("yibity", "yabity");
|
||||
|
||||
var process = require('process');
|
||||
process.addListener('FirstEvent', function (first) {});
|
||||
process.on('SecondEvent', function (second) {});
|
||||
|
||||
process.emit('FirstEvent', 'FirstData');
|
||||
process.emit('SecondEvent', 'SecondData');
|
||||
|
||||
Reference in New Issue
Block a user