diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/websocket/02_websocketstream.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/websocket/02_websocketstream.js b/ext/websocket/02_websocketstream.js index 92b1c6eae..838ae3d4c 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) ) { |