diff options
Diffstat (limited to 'ext/websocket')
-rw-r--r-- | ext/websocket/01_websocket.js | 4 | ||||
-rw-r--r-- | ext/websocket/02_websocketstream.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/websocket/01_websocket.js b/ext/websocket/01_websocket.js index 8c407dff8..bdb29526e 100644 --- a/ext/websocket/01_websocket.js +++ b/ext/websocket/01_websocket.js @@ -5,6 +5,7 @@ ((window) => { const core = window.Deno.core; + const ops = core.ops; const { URL } = window.__bootstrap.url; const webidl = window.__bootstrap.webidl; const { HTTP_TOKEN_CODE_POINT_RE } = window.__bootstrap.infra; @@ -189,8 +190,7 @@ this[_url] = wsURL.href; - core.opSync( - "op_ws_check_permission_and_cancel_handle", + ops.op_ws_check_permission_and_cancel_handle( this[_url], false, ); diff --git a/ext/websocket/02_websocketstream.js b/ext/websocket/02_websocketstream.js index df87c0c97..5266c8dfb 100644 --- a/ext/websocket/02_websocketstream.js +++ b/ext/websocket/02_websocketstream.js @@ -5,6 +5,7 @@ ((window) => { const core = window.Deno.core; + const ops = core.ops; const webidl = window.__bootstrap.webidl; const { writableStreamClose, Deferred } = window.__bootstrap.streams; const { DOMException } = window.__bootstrap.domException; @@ -128,8 +129,7 @@ fillHeaders(headers, options.headers); } - const cancelRid = core.opSync( - "op_ws_check_permission_and_cancel_handle", + const cancelRid = ops.op_ws_check_permission_and_cancel_handle( this[_url], true, ); |