diff --git a/ext/websocket/02_websocketstream.js b/ext/websocket/02_websocketstream.js index 92b1c6eae5539f..838ae3d4ced44a 100644 --- a/ext/websocket/02_websocketstream.js +++ b/ext/websocket/02_websocketstream.js @@ -323,6 +323,8 @@ class WebSocketStream { } catch (_) { // needed to ignore warnings & assertions } + }, () => { + // needed to ignore warnings & assertions }); PromisePrototypeThen(this[_closeSent].promise, () => { @@ -335,7 +337,6 @@ class WebSocketStream { cancel: async (reason) => { let closeCode = null; let reasonString = ""; - if ( ObjectPrototypeIsPrototypeOf(WebSocketErrorPrototype, reason) ) {