diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-12-24 06:04:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-24 13:04:32 +0000 |
commit | 92b2e28c6491f339124ec5851173ac0aaef93908 (patch) | |
tree | 3910827b2772379054c15c4c3f133175138baf36 /ext/websocket/01_websocket.js | |
parent | 1297c9a8f379d89691522c5cc0c6071c479e95a1 (diff) |
chore: ensure that each op provided to ensureFastOps is only used once (#21689)
When we migrate to op-import-per-extension, we will want to ensure that
ops have one and only one place where they are imported. This tackles
the ops that are imported via `ensureFastOps`, but does not yet tackle
direct `ops` imports.
Landing ahead of https://github.com/denoland/deno_core/pull/393
Diffstat (limited to 'ext/websocket/01_websocket.js')
-rw-r--r-- | ext/websocket/01_websocket.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/websocket/01_websocket.js b/ext/websocket/01_websocket.js index 2aea08071..e2ff26c6c 100644 --- a/ext/websocket/01_websocket.js +++ b/ext/websocket/01_websocket.js @@ -44,20 +44,20 @@ const { SymbolFor, TypedArrayPrototypeGetByteLength, } = primordials; -const { op_ws_check_permission_and_cancel_handle } = core.ops; -const { - op_ws_create, +import { + op_ws_check_permission_and_cancel_handle, op_ws_close, - op_ws_send_binary, - op_ws_send_binary_ab, - op_ws_send_text, - op_ws_next_event, + op_ws_create, op_ws_get_buffer, op_ws_get_buffer_as_string, + op_ws_get_buffered_amount, op_ws_get_error, + op_ws_next_event, + op_ws_send_binary, + op_ws_send_binary_ab, op_ws_send_ping, - op_ws_get_buffered_amount, -} = core.ensureFastOps(); + op_ws_send_text, +} from "ext:deno_websocket/00_ops.js"; webidl.converters["sequence<DOMString> or DOMString"] = ( V, |