From 77a675c344e5c003cf0d0a4687a005cb75e4cc0f Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Thu, 15 Jul 2021 11:25:55 +0200 Subject: [PATCH] [minor] Remove unneeded setters Refs: https://github.com/websockets/ws/commit/ecb9d9ea --- lib/websocket.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/websocket.js b/lib/websocket.js index c21a4ad68..cb8077de5 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -125,9 +125,6 @@ class WebSocket extends EventEmitter { return undefined; } - /* istanbul ignore next */ - set onclose(listener) {} - /** * @type {Function} */ @@ -136,9 +133,6 @@ class WebSocket extends EventEmitter { return undefined; } - /* istanbul ignore next */ - set onerror(listener) {} - /** * @type {Function} */ @@ -147,9 +141,6 @@ class WebSocket extends EventEmitter { return undefined; } - /* istanbul ignore next */ - set onopen(listener) {} - /** * @type {Function} */ @@ -158,9 +149,6 @@ class WebSocket extends EventEmitter { return undefined; } - /* istanbul ignore next */ - set onmessage(listener) {} - /** * @type {String} */