Strict function variance fixes round 1, stage 2

This commit is contained in:
Nathan Shively-Sanders
2017-10-02 10:23:55 -07:00
parent ed0a73fbb2
commit c4deeeee60
8 changed files with 213 additions and 123 deletions
+2 -2
View File
@@ -2252,8 +2252,8 @@ namespace process_tests {
process.once("warning", (warning: Error) => { });
process.prependListener("message", (message: any, sendHandle: any) => { });
process.prependOnceListener("SIGBREAK", () => { });
process.on("newListener", (event: string, listener: Function) => { });
process.once("removeListener", (event: string, listener: Function) => { });
process.on("newListener", (event: string | symbol, listener: Function) => { });
process.once("removeListener", (event: string | symbol, listener: Function) => { });
const listeners = process.listeners('uncaughtException');
const oldHandler = listeners[listeners.length - 1];